Browse Source

blank conditional for

pull/76/head
magicmilo 3 years ago
parent
commit
5dacd38187
  1. 25
      config/forms/schema/test.json
  2. 2
      spec/fixtures/forms/test_validator.json

25
config/forms/schema/test.json

@ -21,7 +21,7 @@
"sections": {
"type": "object",
"patternProperties": {
"[a-z_\/#]+": {
"[a-z_]+": {
"description": "",
"type": "object",
"properties": {
@ -32,7 +32,7 @@
"subsections": {
"type": "object",
"patternProperties": {
"[a-z_\/#]+": {
"[a-z_]+": {
"description": "",
"type": "object",
"required": ["label"],
@ -44,16 +44,25 @@
"pages": {
"type": "object",
"patternProperties": {
"[a-z_\/#]+": {
"[a-z_]+": {
"description": "",
"type": "object",
"properties": {
"header": {
"description": "",
"type": "string"
},
"description": {
"description": "",
"type": "string"
},
"questions": {
"type": "object",
"patternProperties": {
"[a-z_\/#]+": {
"[a-z_]+": {
"description": "",
"type": "object",
"required": ["header"],
"properties": {
"check_answer_label": {
"description": "",
@ -66,6 +75,14 @@
"type": {
"description": "",
"type": "string"
},
"hint_text": {
"description": "",
"type": "string"
},
"answer_options": {
"description": "",
"type": "string"
}
}
}

2
spec/fixtures/forms/test_validator.json vendored

@ -8,7 +8,7 @@
"subsections": {
"household_characteristics": {
"label": "Household characteristics",
"baddata": "Shouldn't be here but what you gonna do?",
"ShouldThrowError": "Shouldn't be here but what you gonna do?",
"pages": {
"tenant_code": {
"questions": {

Loading…
Cancel
Save