Browse Source

Update JSON schema

pull/98/head
baarkerlounger 4 years ago
parent
commit
e0b688ab42
  1. 24
      config/forms/schema/generic.json

24
config/forms/schema/generic.json

@ -27,9 +27,9 @@
"properties": { "properties": {
"label": { "label": {
"description": "", "description": "",
"type": "string" "type": "string"
}, },
"subsections": { "subsections": {
"type": "object", "type": "object",
"patternProperties": { "patternProperties": {
"[a-z_]+": { "[a-z_]+": {
@ -41,10 +41,10 @@
"description": "", "description": "",
"type": "string" "type": "string"
}, },
"pages": { "pages": {
"type": "object", "type": "object",
"patternProperties": { "patternProperties": {
"^(?!(conditional_route_to))[a-z_]+$": { "^(?!(depends_on))[a-z_]+$": {
"description": "Page Name", "description": "Page Name",
"type": "object", "type": "object",
"required": ["header", "questions"], "required": ["header", "questions"],
@ -64,7 +64,7 @@
"description": "Question Name", "description": "Question Name",
"type": "object", "type": "object",
"required": ["header", "type"], "required": ["header", "type"],
"properties": { "properties": {
"header": { "header": {
"description": "", "description": "",
"type": "string" "type": "string"
@ -77,7 +77,7 @@
"description": "", "description": "",
"type": "string", "type": "string",
"optional": "true" "optional": "true"
} }
}, },
"additionalProperties": { "additionalProperties": {
"hint_text": { "hint_text": {
@ -105,25 +105,25 @@
} }
}, },
"additionalProperties": { "additionalProperties": {
"conditional_route_to": { "depends_on": {
"description": "", "description": "",
"type": "object" "type": "object"
} }
}, },
"minProperties": 1 "minProperties": 1
} }
} }
} }
}, },
"minProperties": 1 "minProperties": 1
} }
} }
} }
}, },
"minProperties": 2 "minProperties": 2
} }
}, },
"minProperties": 1 "minProperties": 1
} }
} }
} }

Loading…
Cancel
Save