full_schema: This seem to be the best syntax for conditional dependencies...
full_schema: This seem to be the best syntax for conditional dependencies depending on property values in json schema in draft4, dependency keyword only varies based on the presence or abscence of a property. This solution has been suggested in : http://stackoverflow.com/questions/9029524/json-schema-specify-field-is-required-based-on-value-of-another-field http://stackoverflow.com/questions/5036366/writing-more-complex-json-schemas-that-have-dependencies-upon-other-keys#answer-5112681 ( type from v3 is oneOf from v4 )
Showing
Please register or sign in to comment