From 5dacd38187693731e2907798cd466f165dce194f Mon Sep 17 00:00:00 2001 From: magicmilo Date: Wed, 10 Nov 2021 20:05:54 +0000 Subject: [PATCH] blank conditional for --- config/forms/schema/test.json | 25 +++++++++++++++++++++---- spec/fixtures/forms/test_validator.json | 2 +- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/config/forms/schema/test.json b/config/forms/schema/test.json index f81b52d6c..93eaf9a6d 100644 --- a/config/forms/schema/test.json +++ b/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" } } } diff --git a/spec/fixtures/forms/test_validator.json b/spec/fixtures/forms/test_validator.json index e0fe13361..e83c4d970 100644 --- a/spec/fixtures/forms/test_validator.json +++ b/spec/fixtures/forms/test_validator.json @@ -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": {