Forum Discussion
RonRatovsky
5 years agoModerator
There's no way to define conditional fields directly. What you can do is build a schema that's built of several schemas, using keywords like 'allOf', 'oneOf', 'anyOf' and 'not', to build sub-cases for the conditions. By doing that, you can say, for example, that if field X is defined, then fields Y and Z are required, whereas in other cases they are optional.
Related Content
- 13 years agoAnumakonda_mahe
- 12 months agoBob_C
- 2 years agomadhupriya
Recent Discussions
- 13 hours agonoob_Vibes