Last active
January 16, 2017 15:28
-
-
Save brew/1e563ca1d9bc9c528bccf82c20acc1ff to your computer and use it in GitHub Desktop.
An example Question Set Schema for Open Data Surveys
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
[ | |
{ | |
// The question is "Do you like apples?" | |
"id": "like_apples", | |
"position": 1, | |
"defaultProperties": { | |
"visible": true, | |
"enabled": true, | |
"required": true | |
} | |
}, | |
{ | |
// The question is "Do you like RED apples?" | |
"id": "apple_colour", | |
"position": 2, | |
"defaultProperties": { | |
"visible": true, | |
"enabled": false, | |
"required": false | |
}, | |
"ifProvider": [ | |
{ | |
"providerId": "like_apples", | |
"value": "Yes", | |
"properties": { | |
"enabled": true, | |
"required": true | |
} | |
} | |
] | |
}, | |
{ | |
// The question is "Have you eaten a red apple today?" | |
"id": "red_apple_today", | |
"position": 3, | |
"defaultProperties": { | |
"visible": true, | |
"enabled": false, | |
"required": false | |
}, | |
"ifProvider": [ | |
{ | |
"providerId": "apple_colour", | |
"value": "Yes", | |
"properties": { | |
"enabled": true, | |
"required": true | |
} | |
} | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment