JSON Schema for a list of objects that must contain one of three default props #126
-
Hello, I need help...
Can someone help me, please? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
maybe try this:
|
Beta Was this translation helpful? Give feedback.
-
@musemind Hi man! How can I improve the limitation to 1,77,90 but only from the following possible options: 1,2,3,4,5,77,90,100 |
Beta Was this translation helpful? Give feedback.
-
In your link, you have the "required" in the wrong place. It should be inside the array definition. Also, This link correctly shows an error: https://www.jsonschemavalidator.net/s/EAxF9E3U |
Beta Was this translation helpful? Give feedback.
-
@karenetheridge @musemind Hi :-( this is my schema object:
and the following JSON passes the schema (it should fail because it supposed to contain one of the 1,77,90):
Please help me :-( |
Beta Was this translation helpful? Give feedback.
maybe try this: