Last active
January 29, 2019 08:11
-
-
Save Jakemangan/b8d41fa1e47cf90ad80cd051951fdd2f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"definitions": { | |
"question3-9": { | |
"type": "object", | |
"properties": { | |
"answer": { | |
"type": "string", | |
"enum": [ | |
"Home improvements (General)", | |
"Other" | |
] | |
} | |
} | |
}, | |
"question3-257": { | |
"type": "object", | |
"properties": { | |
"answer": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"type": "object", | |
"properties": { | |
"form_submission": { | |
"type": "object", | |
"properties": { | |
"sections": { | |
"type": "object", | |
"properties": { | |
"3": { | |
"type": "object", | |
"properties": { | |
"questions": { | |
"type": "object", | |
"properties": { | |
"9": { | |
"$ref": "#/definitions/question3-9" | |
}, | |
"257": { | |
"$ref": "#/definitions/question3-257" | |
} | |
}, | |
"if": { | |
"properties": { | |
"9": { | |
"properties": { | |
"answer": { | |
"enum": [ | |
"Home improvements (General)" | |
] | |
} | |
}, | |
"required": [ | |
"answer" | |
] | |
} | |
}, | |
"required": [ | |
"9" | |
] | |
}, | |
"then": { | |
"required": [ | |
"257" | |
] | |
} | |
} | |
} | |
} | |
}, | |
"required": [ | |
"3" | |
] | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment