Forked from Jakemangan/gist:bf4d20aa3a0f2d2bfbd39dc6e21ca334
Last active
November 9, 2018 13:03
-
-
Save Relequestual/ecb706c8aac981907964f1b790366247 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"questionA": { | |
"type": "object", | |
"properties": { | |
"answer": { | |
"type": "string", | |
"minLength": 1, | |
"enum": ["Yes", "No"] | |
} | |
} | |
} | |
"questionB": { | |
"type": "object", | |
"properties": { | |
"answer": { | |
"type": null, | |
} | |
} | |
} | |
"questions": { | |
"type": "object", | |
"properties": { | |
"A": {"$ref": "#/definitions/questionA"}, | |
"B": {"$ref": "#/definitions/questionB"} | |
}, | |
"if": { | |
"properties" : { | |
"A": {"enum": ["Yes"]} | |
} | |
}, | |
"then": { | |
"B": { | |
"type": "string", | |
... etc | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment