joi-to-swagger
JSON →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.
Traffic · last 30 days stale · no recent hits
total hits 10
actors 3 distinct systems
last hit 17d ago AhrefsBot
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇫🇷 France · 🇳🇴 Norway · 🇨🇦 Canada
Resources
packagejoi-to-swagger ↗