
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
openapi-json-schema
Advanced tools
Minimalistic OpenAPI 3 ⬌ JSON Schema (draft 7) conversion.
null
/nullable
conversion$ref
's being converted #/definitions
<-> #/components/schemas
const
➡ enum
when converting to OpenAPI$id
/$comment
➡ info['x-id']
/info['x-comment']
when converting to OpenAPI$ref
s are not resolved.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 );
The library exports utilities; encodeRefNameJsonSchema
, decodeRefNameJsonSchema
, encodeRefNameOpenApi
and decodeRefNameOpenApi
used to convert to/from references names, and their corresponding encoding in JSON Schema and Open API.
FAQs
Minimalistic OpenAPI 3 ⬌ JSON Schema (draft 7) conversion
The npm package openapi-json-schema receives a total of 13,361 weekly downloads. As such, openapi-json-schema popularity was classified as popular.
We found that openapi-json-schema 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
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.