Include mandatory field 'title' properties in test json.

pull/7/head
Ferry Boender 10 years ago
parent 32be95d232
commit 2e03e796cd
  1. 27
      test/test_formdefinition_validate.json

@ -3,12 +3,13 @@
"forms": [ "forms": [
{ {
"name": "test_required", "name": "test_required",
"title": "title", "title": "test_required",
"description": "description", "description": "description",
"script": "test.sh", "script": "test.sh",
"fields": [ "fields": [
{ {
"name": "string", "name": "string",
"title": "field",
"type": "string", "type": "string",
"required": true "required": true
} }
@ -16,12 +17,13 @@
}, },
{ {
"name": "test_val_string", "name": "test_val_string",
"title": "title", "title": "test_val_string",
"description": "description", "description": "description",
"script": "test.sh", "script": "test.sh",
"fields": [ "fields": [
{ {
"name": "val_string", "name": "val_string",
"title": "field",
"type": "string", "type": "string",
"minlen": 4, "minlen": 4,
"maxlen": 6 "maxlen": 6
@ -30,12 +32,13 @@
}, },
{ {
"name": "test_val_integer", "name": "test_val_integer",
"title": "title", "title": "test_val_integer",
"description": "description", "description": "description",
"script": "test.sh", "script": "test.sh",
"fields": [ "fields": [
{ {
"name": "val_integer", "name": "val_integer",
"title": "field",
"type": "integer", "type": "integer",
"min": 4, "min": 4,
"max": 6 "max": 6
@ -44,12 +47,13 @@
}, },
{ {
"name": "test_val_float", "name": "test_val_float",
"title": "title", "title": "test_val_float",
"description": "description", "description": "description",
"script": "test.sh", "script": "test.sh",
"fields": [ "fields": [
{ {
"name": "val_float", "name": "val_float",
"title": "field",
"type": "float", "type": "float",
"min": 2.1, "min": 2.1,
"max": 2.3 "max": 2.3
@ -58,12 +62,13 @@
}, },
{ {
"name": "test_val_date", "name": "test_val_date",
"title": "title", "title": "test_val_date",
"description": "description", "description": "description",
"script": "test.sh", "script": "test.sh",
"fields": [ "fields": [
{ {
"name": "val_date", "name": "val_date",
"title": "field",
"type": "date", "type": "date",
"min": "2015-03-02", "min": "2015-03-02",
"max": "2015-03-05" "max": "2015-03-05"
@ -72,12 +77,13 @@
}, },
{ {
"name": "test_val_select", "name": "test_val_select",
"title": "title", "title": "test_val_select",
"description": "description", "description": "description",
"script": "test.sh", "script": "test.sh",
"fields": [ "fields": [
{ {
"name": "val_select", "name": "val_select",
"title": "field",
"type": "select", "type": "select",
"options": [ "options": [
["option_a", "Option A"], ["option_a", "Option A"],
@ -88,12 +94,13 @@
}, },
{ {
"name": "test_val_checkbox", "name": "test_val_checkbox",
"title": "title", "title": "test_val_checkbox",
"description": "description", "description": "description",
"script": "test.sh", "script": "test.sh",
"fields": [ "fields": [
{ {
"name": "val_checkbox", "name": "val_checkbox",
"title": "field",
"type": "checkbox" "type": "checkbox"
} }
] ]
@ -114,12 +121,13 @@
}, },
{ {
"name": "test_val_text", "name": "test_val_text",
"title": "title", "title": "test_val_text",
"description": "description", "description": "description",
"script": "test.sh", "script": "test.sh",
"fields": [ "fields": [
{ {
"name": "val_text", "name": "val_text",
"title": "field",
"type": "text", "type": "text",
"minlen": 5, "minlen": 5,
"maxlen": 10 "maxlen": 10
@ -128,12 +136,13 @@
}, },
{ {
"name": "test_val_file", "name": "test_val_file",
"title": "title", "title": "test_val_file",
"description": "description", "description": "description",
"script": "test.sh", "script": "test.sh",
"fields": [ "fields": [
{ {
"name": "val_file", "name": "val_file",
"title": "field",
"type": "file" "type": "file"
} }
] ]

Loading…
Cancel
Save