Required fields in subschema #112
Unanswered
AdamOndrejkovic
asked this question in
Q&A
Replies: 1 comment 2 replies
-
See the if/then/else and dependentSchemas keywords. https://json-schema.org/understanding-json-schema/reference/index.html |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a functional schema and I've added a subschema that has required fields. Now I got an error as the object isn't always needed but the fields in subschema are. How can I achieve that the fields in subschema will be only required if there is an object of that type in the parent schema?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions