Validate example.

pull/7/head
Ferry Boender 10 years ago
parent 74f7567a00
commit c0ecdd4371
  1. 5
      examples/validate/job_validate.sh
  2. 28
      examples/validate/validate.json

@ -4,3 +4,8 @@ echo "string = $string"
echo "integer = $integer" echo "integer = $integer"
echo "float = $float" echo "float = $float"
echo "date = $date" echo "date = $date"
echo "radio = $radio"
echo "text = $text"
echo "password = $password"
echo "file = $file"
echo "file name = $file__name"

@ -38,6 +38,34 @@
"required": true, "required": true,
"min": "2015-01-01", "min": "2015-01-01",
"max": "2015-02-01" "max": "2015-02-01"
},
{
"name": "radio",
"title": "A radio",
"type": "radio",
"required": true,
"options": [
["One", "one"],
["Two", "two"],
["Three", "three"]
]
},
{
"name": "text",
"title": "A text input field",
"type": "text",
"required": true,
"rows": 2,
"cols": 50,
"maxlen": 100,
"minlen": 10
},
{
"name": "password",
"title": "A password input field",
"type": "password",
"required": true,
"minlen": 5
} }
] ]
} }

Loading…
Cancel
Save