Converts Joi validation schemas to JSON Schema. Supports multiple Joi versions (including @commercial/joi, @hapi/joi, and joi itself) across versions 12 through 17. The last release (1.4.11) appears to be from 2021. It is a fork/continuation of the earlier joi-to-json package, aiming to provide broader version compatibility and maintenance. It converts Joi objects into standard JSON Schema format, enabling interoperability with tools that expect JSON Schema.
npm install ut-joiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Converts a Joi object schema to JSON Schema, working with @hapi/joi v17.
Migrate to an actively maintained converter like 'joi-to-json' (v2+) if using Joi >= 17.
Use a library that supports Joi v18+ or continue using Joi v17.
Ensure lodash is installed: npm install lodash
Use a supported Joi version (e.g., @hapi/joi 17).
Replace alternatives with a different approach or use a different converter like 'joi-to-json-schema'.
Ensure you call convert on a Joi schema, not on the Joi module itself.