|
76 | 76 | "type": "array", |
77 | 77 | "items": { "type": "string" }, |
78 | 78 | "minItems": 1 |
79 | | - } |
| 79 | + }, |
| 80 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
80 | 81 | }, |
81 | 82 | "required": ["type", "title", "description", "enum"], |
82 | 83 | "if": { |
|
124 | 125 | "maxLength": { "type": "integer" }, |
125 | 126 | "sectionCaption": { "type": "string" }, |
126 | 127 | "sectionDescription": { "type": "string" }, |
127 | | - "isSecret": { "enum": [false] } |
| 128 | + "isSecret": { "enum": [false] }, |
| 129 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
128 | 130 | }, |
129 | 131 | "unevaluatedProperties": false, |
130 | 132 | "allOf": [ |
|
171 | 173 | "editor": { "enum": ["textfield", "textarea", "hidden"] }, |
172 | 174 | "isSecret": { "enum": [true] }, |
173 | 175 | "sectionCaption": { "type": "string" }, |
174 | | - "sectionDescription": { "type": "string" } |
| 176 | + "sectionDescription": { "type": "string" }, |
| 177 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
175 | 178 | } |
176 | 179 | } |
177 | 180 | }, |
|
206 | 209 | "placeholderValue": { "type": "string" }, |
207 | 210 | "patternKey": { "type": "string" }, |
208 | 211 | "patternValue": { "type": "string" }, |
209 | | - "isSecret": { "enum": [false] } |
| 212 | + "isSecret": { "enum": [false] }, |
| 213 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
210 | 214 | }, |
211 | 215 | "unevaluatedProperties": false, |
212 | 216 | "allOf": [ |
|
303 | 307 | "sectionCaption": { "type": "string" }, |
304 | 308 | "sectionDescription": { "type": "string" }, |
305 | 309 | "items": { "$ref": "#/definitions/arrayItems" }, |
306 | | - "isSecret": { "enum": [true] } |
| 310 | + "isSecret": { "enum": [true] }, |
| 311 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
307 | 312 | } |
308 | 313 | } |
309 | 314 | }, |
|
347 | 352 | }, |
348 | 353 | "additionalProperties": { |
349 | 354 | "type": "boolean" |
350 | | - } |
| 355 | + }, |
| 356 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
351 | 357 | }, |
352 | 358 | "unevaluatedProperties": false, |
353 | 359 | "allOf": [ |
|
402 | 408 | }, |
403 | 409 | "additionalProperties": { |
404 | 410 | "type": "boolean" |
405 | | - } |
| 411 | + }, |
| 412 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
406 | 413 | } |
407 | 414 | } |
408 | 415 | }, |
|
422 | 429 | "unit": { "type": "string" }, |
423 | 430 | "editor": { "enum": ["number", "hidden"] }, |
424 | 431 | "sectionCaption": { "type": "string" }, |
425 | | - "sectionDescription": { "type": "string" } |
| 432 | + "sectionDescription": { "type": "string" }, |
| 433 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
426 | 434 | }, |
427 | 435 | "required": ["type", "title", "description"], |
428 | 436 | "if": { |
|
451 | 459 | "unit": { "type": "string" }, |
452 | 460 | "editor": { "enum": ["number", "hidden"] }, |
453 | 461 | "sectionCaption": { "type": "string" }, |
454 | | - "sectionDescription": { "type": "string" } |
| 462 | + "sectionDescription": { "type": "string" }, |
| 463 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
455 | 464 | }, |
456 | 465 | "required": ["type", "title", "description"], |
457 | 466 | "if": { |
|
479 | 488 | "groupDescription": { "type": "string" }, |
480 | 489 | "editor": { "enum": ["checkbox", "hidden"] }, |
481 | 490 | "sectionCaption": { "type": "string" }, |
482 | | - "sectionDescription": { "type": "string" } |
| 491 | + "sectionDescription": { "type": "string" }, |
| 492 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
483 | 493 | }, |
484 | 494 | "required": ["type", "title", "description"], |
485 | 495 | "if": { |
|
521 | 531 | "minLength": { "type": "integer" }, |
522 | 532 | "maxLength": { "type": "integer" }, |
523 | 533 | "sectionCaption": { "type": "string" }, |
524 | | - "sectionDescription": { "type": "string" } |
| 534 | + "sectionDescription": { "type": "string" }, |
| 535 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
525 | 536 | }, |
526 | 537 | "required": ["type", "title", "description", "resourceType"], |
527 | 538 | "allOf": [ |
|
580 | 591 | "uniqueItems": { "type": "boolean" }, |
581 | 592 | "resourceType": { "enum": ["dataset", "keyValueStore", "requestQueue"] }, |
582 | 593 | "sectionCaption": { "type": "string" }, |
583 | | - "sectionDescription": { "type": "string" } |
| 594 | + "sectionDescription": { "type": "string" }, |
| 595 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
584 | 596 | }, |
585 | 597 | "required": ["type", "title", "description", "resourceType"], |
586 | 598 | "allOf": [ |
|
632 | 644 | "nullable": { "type": "boolean" }, |
633 | 645 | "editor": { "enum": ["json", "hidden"] }, |
634 | 646 | "sectionCaption": { "type": "string" }, |
635 | | - "sectionDescription": { "type": "string" } |
| 647 | + "sectionDescription": { "type": "string" }, |
| 648 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
636 | 649 | }, |
637 | 650 | "required": ["type", "title", "description", "editor"], |
638 | 651 | "if": { |
|
667 | 680 | "type": "array", |
668 | 681 | "items": { "type": "string" }, |
669 | 682 | "minItems": 1 |
670 | | - } |
| 683 | + }, |
| 684 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
671 | 685 | }, |
672 | 686 | "required": ["type", "title", "description", "enum"], |
673 | 687 | "if": { |
|
694 | 708 | "nullable": { "type": "boolean" }, |
695 | 709 | "minLength": { "type": "integer" }, |
696 | 710 | "maxLength": { "type": "integer" }, |
697 | | - "editor": { "enum": ["javascript", "python", "textfield", "textarea", "datepicker", "hidden", "fileupload"] } |
| 711 | + "editor": { "enum": ["javascript", "python", "textfield", "textarea", "datepicker", "hidden", "fileupload"] }, |
| 712 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
698 | 713 | }, |
699 | 714 | "required": ["type", "title", "description"], |
700 | 715 | "allOf": [ |
|
746 | 761 | "placeholderKey": { "type": "string" }, |
747 | 762 | "placeholderValue": { "type": "string" }, |
748 | 763 | "patternKey": { "type": "string" }, |
749 | | - "patternValue": { "type": "string" } |
| 764 | + "patternValue": { "type": "string" }, |
| 765 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
750 | 766 | }, |
751 | 767 | "required": ["type", "title", "description"], |
752 | 768 | "unevaluatedProperties": false, |
|
842 | 858 | "minimum": { "type": "integer" }, |
843 | 859 | "maximum": { "type": "integer" }, |
844 | 860 | "unit": { "type": "string" }, |
845 | | - "editor": { "enum": ["number", "hidden"] } |
| 861 | + "editor": { "enum": ["number", "hidden"] }, |
| 862 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
846 | 863 | }, |
847 | 864 | "required": ["type", "title", "description"], |
848 | 865 | "if": { |
|
869 | 886 | "minimum": { "type": "number" }, |
870 | 887 | "maximum": { "type": "number" }, |
871 | 888 | "unit": { "type": "string" }, |
872 | | - "editor": { "enum": ["number", "hidden"] } |
| 889 | + "editor": { "enum": ["number", "hidden"] }, |
| 890 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
873 | 891 | }, |
874 | 892 | "required": ["type", "title", "description"], |
875 | 893 | "if": { |
|
895 | 913 | "nullable": { "type": "boolean" }, |
896 | 914 | "groupCaption": { "type": "string" }, |
897 | 915 | "groupDescription": { "type": "string" }, |
898 | | - "editor": { "enum": ["checkbox", "hidden"] } |
| 916 | + "editor": { "enum": ["checkbox", "hidden"] }, |
| 917 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
899 | 918 | }, |
900 | 919 | "required": ["type", "title", "description"], |
901 | 920 | "if": { |
|
933 | 952 | }, |
934 | 953 | "additionalProperties": { |
935 | 954 | "type": "boolean" |
936 | | - } |
| 955 | + }, |
| 956 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
937 | 957 | }, |
938 | 958 | "required": ["type", "title", "description"], |
939 | 959 | "if": { |
|
973 | 993 | "nullable": { "type": "boolean" }, |
974 | 994 | "pattern": { "type": "string" }, |
975 | 995 | "minLength": { "type": "integer" }, |
976 | | - "maxLength": { "type": "integer" } |
| 996 | + "maxLength": { "type": "integer" }, |
| 997 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
977 | 998 | }, |
978 | 999 | "required": ["type", "title", "description", "resourceType"], |
979 | 1000 | "if": { |
|
1013 | 1034 | "minItems": { "type": "integer" }, |
1014 | 1035 | "maxItems": { "type": "integer" }, |
1015 | 1036 | "uniqueItems": { "type": "boolean" }, |
1016 | | - "resourceType": { "enum": ["dataset", "keyValueStore", "requestQueue"] } |
| 1037 | + "resourceType": { "enum": ["dataset", "keyValueStore", "requestQueue"] }, |
| 1038 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
1017 | 1039 | }, |
1018 | 1040 | "required": ["type", "title", "description", "resourceType"], |
1019 | 1041 | "if": { |
|
1548 | 1570 | "required": ["type"] |
1549 | 1571 | } |
1550 | 1572 | } |
| 1573 | + }, |
| 1574 | + "errorMessage": { |
| 1575 | + "title": "Utils: Custom error message definition", |
| 1576 | + "type": "object", |
| 1577 | + "properties": { |
| 1578 | + "type": { "type": "string" }, |
| 1579 | + "pattern": { "type": "string" }, |
| 1580 | + "minLength": { "type": "string" }, |
| 1581 | + "maxLength": { "type": "string" }, |
| 1582 | + "enum": { "type": "string" }, |
| 1583 | + "minimum": { "type": "string" }, |
| 1584 | + "maximum": { "type": "string" }, |
| 1585 | + "minItems": { "type": "string" }, |
| 1586 | + "maxItems": { "type": "string" }, |
| 1587 | + "uniqueItems": { "type": "string" }, |
| 1588 | + "minProperties": { "type": "string" }, |
| 1589 | + "maxProperties": { "type": "string" }, |
| 1590 | + "patternKey": { "type": "string" }, |
| 1591 | + "patternValue": { "type": "string" } |
| 1592 | + }, |
| 1593 | + "additionalProperties": false |
1551 | 1594 | } |
1552 | 1595 | } |
1553 | 1596 | } |
0 commit comments