joi-to-json

JSON →
library 5.0.5 ·javascript
verified Jun 7, 2026

A library to convert Joi validation schemas to JSON Schema (Draft 04, 07, 2019-09, 2020-12) and OpenAPI 3.0/3.1 formats. Current stable version v5.0.5, released Nov 2024, supports Joi v17.13.3 and v18.0.0. Built on Joi's public describe() API, avoiding internal dependencies. Offers multiple output types via a single parse() function. Key differentiator: official Joi describe-based conversion with broad output standard support, unlike older libraries relying on private APIs.