Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Relequestual/ecb706c8aac981907964f1b790366247 to your computer and use it in GitHub Desktop.
Save Relequestual/ecb706c8aac981907964f1b790366247 to your computer and use it in GitHub Desktop.
"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