[DEPRECATED] TypeScript type definitions for OpenAPI Specifications.
npm install @loopback/openapi-v3-typesTypeScript type definitions for OpenAPI Spec/Swagger documents.
TypeScript definitions describing the schema of OpenAPI/Swagger documents,
including LoopBack-specific extensions.
**This package is deprecated, use
openapi3-ts or
@loopback/openapi-v3
instead.**
``sh`
npm install --save @loopback/openapi-v3-types
Use OpenApiSpec type in your function accepting an OpenAPI document:
`ts
import {OpenApiSpec} from '@loopback/openapi-v3-types';
export function validateSpec(spec: OpenApiSpec) {
// ...
}
`
IDEs like Visual Studio Code will offer auto-completion for spec properties when
constructing a spec argument value.
See
version 3.0.0
of OpenAPI Specification. For the types missing in this package, they are
exported from
Run npm test` from the root folder.
See
all contributors.
MIT