|
|
@ -10,15 +10,22 @@ |
|
|
|
"fields": [ |
|
|
|
"fields": [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
"name": "string", |
|
|
|
"name": "string", |
|
|
|
"title": "A string between 5 and 7 characters.", |
|
|
|
"title": "A string of at least 5 and at most 7 characters.", |
|
|
|
"type": "string", |
|
|
|
"type": "string", |
|
|
|
"required": true, |
|
|
|
"required": true, |
|
|
|
"minlen": 5, |
|
|
|
"minlen": 5, |
|
|
|
"maxlen": 7 |
|
|
|
"maxlen": 7 |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"name": "string_nr", |
|
|
|
|
|
|
|
"title": "A non-required string of at least 5 and at most 7 characters.", |
|
|
|
|
|
|
|
"type": "string", |
|
|
|
|
|
|
|
"minlen": 5, |
|
|
|
|
|
|
|
"maxlen": 7 |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"name": "integer", |
|
|
|
"name": "integer", |
|
|
|
"title": "An integer between 10 and 20", |
|
|
|
"title": "An integer (min 10, max 20)", |
|
|
|
"type": "integer", |
|
|
|
"type": "integer", |
|
|
|
"required": true, |
|
|
|
"required": true, |
|
|
|
"min": 10, |
|
|
|
"min": 10, |
|
|
@ -26,7 +33,7 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"name": "float", |
|
|
|
"name": "float", |
|
|
|
"title": "A real number between 0.5 and 1", |
|
|
|
"title": "A real number (min 0.5, max 1.0)", |
|
|
|
"type": "float", |
|
|
|
"type": "float", |
|
|
|
"required": true, |
|
|
|
"required": true, |
|
|
|
"min": 0.5, |
|
|
|
"min": 0.5, |
|
|
@ -34,7 +41,7 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"name": "date", |
|
|
|
"name": "date", |
|
|
|
"title": "A date", |
|
|
|
"title": "A date (in the month 2015-01)", |
|
|
|
"type": "date", |
|
|
|
"type": "date", |
|
|
|
"required": true, |
|
|
|
"required": true, |
|
|
|
"min": "2015-01-01", |
|
|
|
"min": "2015-01-01", |
|
|
@ -53,7 +60,7 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"name": "text", |
|
|
|
"name": "text", |
|
|
|
"title": "A text input field", |
|
|
|
"title": "A text input field (min 10 chars, max 100 chars)", |
|
|
|
"type": "text", |
|
|
|
"type": "text", |
|
|
|
"required": true, |
|
|
|
"required": true, |
|
|
|
"rows": 2, |
|
|
|
"rows": 2, |
|
|
@ -63,7 +70,7 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"name": "password", |
|
|
|
"name": "password", |
|
|
|
"title": "A password input field", |
|
|
|
"title": "A password input field of at least 5 chars", |
|
|
|
"type": "password", |
|
|
|
"type": "password", |
|
|
|
"required": true, |
|
|
|
"required": true, |
|
|
|
"minlen": 5 |
|
|
|
"minlen": 5 |
|
|
|