{"library":"joi-to-swagger","type":"library","category":null,"description":"Converts Joi validation schemas into OpenAPI 3.0 schema definitions. Stable version 6.2.0, maintained on npm, with TypeScript definitions included. Key differentiator: directly maps Joi constraints (min, max, pattern, enum, nullable, etc.) to OpenAPI properties and supports `ref` components via a second argument. Requires Joi >=17.1.1 as a peer dependency. Alternative to manual OpenAPI schema authoring, useful for API documentation generators and validators that reuse existing Joi definitions.","language":"javascript","status":"active","version":"6.2.0","tags":["javascript","joi","swagger","schema","api","convert","openapi","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install joi-to-swagger","imports":["import j2s from 'joi-to-swagger';","const j2s = require('joi-to-swagger');","const { swagger, components } = j2s(schema, existingComponents);"]},{"cmd":"yarn add joi-to-swagger","imports":[]},{"cmd":"pnpm add joi-to-swagger","imports":[]}],"homepage":"https://github.com/Twipped/joi-to-swagger#readme","github":"https://github.com/Twipped/joi-to-swagger","docs":null,"changelog":null,"pypi":null,"npm":"joi-to-swagger","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}