项目作者: metadevpro

项目描述 :
TS Model & utils for creating and exposing OpenAPI 3.x contracts.
高级语言: TypeScript
项目地址: git://github.com/metadevpro/openapi3-ts.git
创建时间: 2017-03-06T18:47:56Z
项目社区:https://github.com/metadevpro/openapi3-ts

开源协议:MIT License

下载


OpenApi3-TS

TypeScript library to help building OpenAPI 3.x compliant API contracts.

Coverage Status
Known Vulnerabilities
npm version

NPM

Version 4

Breaking change notice:

Version 4.0 Adds explicit support for OAS 3.0 and OAS 3.1 as separate implementations.

To use version 3.1 import

  1. import { oas31 } from 'openapi3-ts';

Or directly import from subpath:

  1. import { OpenAPIObject, OpenApiBuilder } from 'openapi3-ts/oas31';

To use version 3.0 import

  1. import { oas30 } from 'openapi3-ts';

Or directly import from subpath:

  1. import { OpenAPIObject, OpenApiBuilder } from 'openapi3-ts/oas30';

Includes

  • /src/model TS typed interfaces for helping building a contract.
  • /src/dsl Fluent DSL for building a contract.

Install

Install package via npm:

  1. npm i --save openapi3-ts

Documentation, Versions, and Changelog

References

License

Licensed under the MIT License.

Credits

Contact: Pedro J. Molina | github: pjmolina | twitter: pmolinam

(c) 2017-2024. Pedro J. Molina at Metadev S.L. https://metadev.pro & contributors.