{"library":"json-schema-for-openapi","type":"library","category":null,"description":"Converts standard JSON Schema (draft-07, 2019-09, 2020-12) to an OpenAPI v3.0.x compatible Schema Object. Current stable version is 0.5.0, released irregularly with breaking changes (v0.3.0 removed built-in $ref handling). Key differentiators: focused solely on v3.0.x compatibility (not v3.1.x), handles specific JSON Schema features unsupported by v3.0.x — converting items from array to object, multiple types to oneOf, const to enum, null type to nullable, and default values to proper OpenAPI types. Does NOT dereference $ref; users must pre-process with a separate dereferencing library. Lightweight with no runtime dependencies.","language":"javascript","status":"active","version":"0.5.0","tags":["javascript","json","json-schema","openAPI","openAPI-v3"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install json-schema-for-openapi","imports":["import { convertOpenApi } from 'json-schema-for-openapi'","import { convertSchemaObj } from 'json-schema-for-openapi'","import { convertSchemaObj } from 'json-schema-for-openapi'"]},{"cmd":"yarn add json-schema-for-openapi","imports":[]},{"cmd":"pnpm add json-schema-for-openapi","imports":[]}],"homepage":"https://github.com/JaredCE/json-schema-to-openAPI-schema-object#readme","github":"https://github.com/JaredCE/json-schema-to-openAPI-schema-object","docs":null,"changelog":null,"pypi":null,"npm":"json-schema-for-openapi","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}