@ -36,8 +36,8 @@ end
begin
# path = "config/forms/schema/generic.json"
path = "config/forms/schema/generic.json"
path = "config/forms/schema/2021_2022.json"
# path = "config/forms/schema/2021_2022.json"
file = File.open(path)
schema = JSON.parse(file.read)
@ -11,11 +11,13 @@
},
"start_year": {
"description": "",
"type": "integer"
"type": "integer",
"optional": "true"
"end_year": {
"required": "false"
"sections": {
@ -19,6 +19,21 @@
}
"person_1_age": {
"header": "",
"questions": {
"check_answer_label": "Tenant's age",
"header": "What is the tenant's age?",
"hint_text": "",
"type": "numeric",
"min": 0,
"max": 120,
"step": 1