enjoi
enjoi copied to clipboard
Converts a JSON schema to a Joi schema.
Hi, I found one issue with @hapi/joi. Options.extensions could not be an array.
While trying to better understand JSON Schema I ended up with this Q/A thread https://github.com/json-schema-org/json-schema-spec/issues/733 which explained a lot in how JSON Schema validation should work. Taking that into consideration...
Hey there, thanks for this useful lib, we hope to use it in our system very soon, however we ran into this bug: Given the following schema: ```json { "type":...
**Description:** Would you consider a PR for the ability to add additional Joi validation to the converted schemas? Joi supports this using [schema concatenation](https://github.com/hapijs/joi/blob/v14.1.0/API.md#anyconcatschema). So it will be something like:...
Thanks for your great library! I am wondering if it would be possible to define conditional validation rules in a json schema, since I used this feature a lot with...
When used with `allOf`, `abortEarly` does not work. I suppose it is related to Joi extension for `allOf`. I pasted a minimal sample code below: ## Example Code ```js const...
Hi, JSON schema simplified below throws warning and does not create Joi object. I'm not sure if this is a bug, or whether `object` type is default, but I validated...