Package Exports
- openapi-json-schema
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (openapi-json-schema) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
openapi-json-schema
Minimalistic OpenAPI 3 ⬌ JSON Schema (draft 7) conversion.
- This package aims at full conversion support except reference resolution, but today it only supports null/nullable conversion. PR's are welcome.
- JSON
$ref
s are not resolved. - This package has no dependencies, and will continue to have no dependencies - re: minimalistic.
Usage
import {
jsonSchemaToOpenApiSchema,
openApiSchemaToJsonSchema,
} from 'openapi-json-schema'
// JSON Schema to Open API
const openApi = jsonSchemaToOpenApiSchema( jsonSchema );
// Open API to JSON Schema
const jsonSchema = openApiSchemaToJsonSchema( openApi );