Skip to content

JSON schema documentation #916

Answered by radekmie
zehawki asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @zehawki. Actually, your code would work totally fine in ajv v6. From v7, all keywords have to be registered, therefore you'd need to add allowedValues and/or options to the keywords in the Ajv constructor. Also, uniforms use the uniforms keyword, where you can pass all of the props as normal, without registering them. Here's a playground example of these two approaches.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zehawki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants