Skip to content

Instantly share code, notes, and snippets.

@brew
Last active January 16, 2017 15:28
Show Gist options
  • Save brew/1e563ca1d9bc9c528bccf82c20acc1ff to your computer and use it in GitHub Desktop.
Save brew/1e563ca1d9bc9c528bccf82c20acc1ff to your computer and use it in GitHub Desktop.
An example Question Set Schema for Open Data Surveys
[
{
// 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