Forum Discussion
RonRatovsky
6 years agoStaff
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 ago
- 3 years ago
- 14 years ago
- 6 years ago
Recent Discussions
- 7 days ago
- 7 days ago
- 24 days ago