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": { "sections": {
"type": "object", "type": "object",
"patternProperties": { "patternProperties": {
"[a-z_\/#]+": { "[a-z_]+": {
"description": "", "description": "",
"type": "object", "type": "object",
"properties": { "properties": {
@ -32,7 +32,7 @@
"subsections": { "subsections": {
"type": "object", "type": "object",
"patternProperties": { "patternProperties": {
"[a-z_\/#]+": { "[a-z_]+": {
"description": "", "description": "",
"type": "object", "type": "object",
"required": ["label"], "required": ["label"],
@ -44,16 +44,25 @@
"pages": { "pages": {
"type": "object", "type": "object",
"patternProperties": { "patternProperties": {
"[a-z_\/#]+": { "[a-z_]+": {
"description": "", "description": "",
"type": "object", "type": "object",
"properties": { "properties": {
"header": {
"description": "",
"type": "string"
},
"description": {
"description": "",
"type": "string"
},
"questions": { "questions": {
"type": "object", "type": "object",
"patternProperties": { "patternProperties": {
"[a-z_\/#]+": { "[a-z_]+": {
"description": "", "description": "",
"type": "object", "type": "object",
"required": ["header"],
"properties": { "properties": {
"check_answer_label": { "check_answer_label": {
"description": "", "description": "",
@ -66,6 +75,14 @@
"type": { "type": {
"description": "", "description": "",
"type": "string" "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": { "subsections": {
"household_characteristics": { "household_characteristics": {
"label": "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": { "pages": {
"tenant_code": { "tenant_code": {
"questions": { "questions": {

Loading…
Cancel
Save