Browse Source

more fix

pull/76/head
magicmilo 3 years ago
parent
commit
967ee6b0e1
  1. 4
      app/helpers/json_schema_validation.rb
  2. 7
      spec/fixtures/forms/test_validator.json

4
app/helpers/json_schema_validation.rb

@ -28,8 +28,8 @@ begin
return
end
# directories = ["config/forms", "spec/fixtures/forms"]
directories = ["config/forms"]
directories = ["config/forms", "spec/fixtures/forms"]
# directories = ["config/forms"]
get_all_form_paths(directories).each do |path|
puts path

7
spec/fixtures/forms/test_validator.json vendored

@ -11,18 +11,20 @@
"ShouldThrowError": "Shouldn't be here but what you gonna do?",
"pages": {
"tenant_code": {
"header": "",
"description": "",
"ShouldThrowError": "Shouldn't be here but what you gonna do?",
"questions": {
"tenant_code": {
"check_answer_label": "Tenant code",
"header": "What is the tenant code?",
"description": "",
"type": "text"
}
},
"conditional_route_to": {"test": "Yes"}
},
"conditional_route_to": {"test": "Yes"}
},
"conditional_route_to": {"test": "Yes"},
"person_1_age": {
"header": "",
"description": "",
@ -43,3 +45,4 @@
}
}
}
}

Loading…
Cancel
Save