Security News
Combatting Alert Fatigue by Prioritizing Malicious Intent
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
openapi31-ts
Advanced tools
TypeScript help library to help building OpenAPI 3.1.x compliant API contracts.
For OpenAPI 3.0.x contracts see instead: openapi3-ts.
This library provides an internal DSL and Typescript interfaces to help to build and produce OpenAPI Specfications and to format them as JSON and YAML.
See the test in the *.spec.ts
files to see how to use it.
For working with OpenAPI v. 3.1.0 use this library, for OpenAPI 3.0.0 use this other twin one: openapi3-ts.
Main differences in implementation are:
exclusiveMaximum
was a boolean
on OpenAPI 3.0, now is a number in OpenAPI 3.1.exclusiveMinimum
was a boolean
on OpenAPI 3.0, now is a number in OpenAPI 3.1.example
is deprecated in favour of examples
.nullable: true
.Read for a more detailed comparison.
/src/model
TS typed interfaces for helping building a contract./src/dsl
Fluent DSL for building a contract.Install package via npm:
npm i --save openapi31-ts
See changelog.
Licensed under the MIT License.
Contact: Pedro J. Molina | github: pjmolina | twitter: pmolinam
(c) 2017-2023. Pedro J. Molina at Metadev S.L. https://metadev.pro & contributors.
FAQs
TS Model & utils for OpenAPI 3.1.x specification.
The npm package openapi31-ts receives a total of 0 weekly downloads. As such, openapi31-ts popularity was classified as not popular.
We found that openapi31-ts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.