Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1508 from ONSdigital/format-summary-schema
Browse files Browse the repository at this point in the history
Format test_summary.json
  • Loading branch information
shahi645 authored Mar 15, 2018
2 parents 9cbacec + bdef285 commit b2ecd67
Showing 1 changed file with 114 additions and 116 deletions.
230 changes: 114 additions & 116 deletions data/en/test_summary.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,128 +10,126 @@
"sections": [{
"id": "default-section",
"groups": [{
"blocks": [{
"type": "Question",
"id": "radio",
"description": "",
"questions": [{
"answers": [{
"id": "radio-answer",
"label": "What is your favourite breakfast food",
"mandatory": false,
"options": [{
"label": "None",
"value": "None"
},
{
"label": "Bacon",
"value": "Bacon"
},
{
"label": "Eggs",
"value": "Eggs"
},
{
"label": "Sausage",
"value": "Sausage"
},
{
"label": "Other",
"description": "An answer is required.",
"value": "Other",
"child_answer_id": "other-answer-mandatory"
}
],
"q_code": "20",
"type": "Radio"
},
{
"parent_answer_id": "radio-answer",
"alias": "othervalue",
"mandatory": false,
"id": "other-answer-mandatory",
"label": "Please specify other",
"q_code": "20",
"type": "TextField"
}
],
"blocks": [{
"type": "Question",
"id": "radio",
"description": "",
"id": "radio-question",
"title": "",
"type": "General"
}],
"title": "What is your favourite breakfast food",
"routing_rules": []
},
{
"type": "Question",
"id": "test-number-block",
"description": "",
"questions": [{
"answers": [{
"id": "test-currency",
"description": "",
"label": "Currency Test",
"mandatory": false,
"type": "Currency",
"currency": "GBP"
},
{
"id": "square-kilometres",
"description": "",
"label": "Kilometres Square",
"mandatory": false,
"type": "Unit",
"unit": "area-square-kilometer"
},
{
"id": "test-decimal",
"description": "",
"label": "Decimal test to 2 decimal places",
"mandatory": false,
"type": "Number",
"decimal_places": 2
}
],
"questions": [{
"answers": [{
"id": "radio-answer",
"label": "What is your favourite breakfast food",
"mandatory": false,
"options": [{
"label": "None",
"value": "None"
},
{
"label": "Bacon",
"value": "Bacon"
},
{
"label": "Eggs",
"value": "Eggs"
},
{
"label": "Sausage",
"value": "Sausage"
},
{
"label": "Other",
"description": "An answer is required.",
"value": "Other",
"child_answer_id": "other-answer-mandatory"
}
],
"q_code": "20",
"type": "Radio"
},
{
"parent_answer_id": "radio-answer",
"alias": "othervalue",
"mandatory": false,
"id": "other-answer-mandatory",
"label": "Please specify other",
"q_code": "20",
"type": "TextField"
}
],
"description": "",
"id": "radio-question",
"title": "",
"type": "General"
}],
"title": "What is your favourite breakfast food",
"routing_rules": []
},
{
"type": "Question",
"id": "test-number-block",
"description": "",
"questions": [{
"answers": [{
"id": "test-currency",
"description": "",
"label": "Currency Test",
"mandatory": false,
"type": "Currency",
"currency": "GBP"
},
{
"id": "square-kilometres",
"description": "",
"label": "Kilometres Square",
"mandatory": false,
"type": "Unit",
"unit": "area-square-kilometer"
},
{
"id": "test-decimal",
"description": "",
"label": "Decimal test to 2 decimal places",
"mandatory": false,
"type": "Number",
"decimal_places": 2
}
],
"description": "",
"id": "test-number-range-question",
"title": "Please enter test values (none mandatory)",
"type": "General"
}],
"title": ""
}
],
"id": "summary-group",
"title": ""
},
{
"blocks": [{
"description": "",
"id": "test-number-range-question",
"title": "Please enter test values (none mandatory)",
"type": "General"
}],
"title": ""
}
],
"id": "summary-group",
"title": ""
},
{
"blocks": [
{
"description": "",
"type": "Question",
"id": "dessert-block",
"questions": [{
"id": "test-dessert-question",
"title": "",
"type": "General",
"answers": [
{
"type": "Question",
"id": "dessert-block",
"questions": [{
"id": "test-dessert-question",
"title": "",
"type": "General",
"answers": [{
"id": "dessert",
"label": "What is your favourite dessert?",
"mandatory": false,
"q_code": "30",
"type": "TextField"
}
]
}]
},
{
"type": "Summary",
"id": "summary"
}
],
"id": "dessert-group",
"title": "Dessert"
}]
}]
}]
},
{
"type": "Summary",
"id": "summary"
}
],
"id": "dessert-group",
"title": "Dessert"
}
]
}]
}

0 comments on commit b2ecd67

Please sign in to comment.