|
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": { |
|
120 | 121 | "maxLength": { "type": "integer" }, |
121 | 122 | "sectionCaption": { "type": "string" }, |
122 | 123 | "sectionDescription": { "type": "string" }, |
123 | | - "isSecret": { "enum": [false] } |
| 124 | + "isSecret": { "enum": [false] }, |
| 125 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
124 | 126 | }, |
125 | 127 | "unevaluatedProperties": false, |
126 | 128 | "allOf": [ |
|
191 | 193 | "editor": { "enum": ["textfield", "textarea", "hidden"] }, |
192 | 194 | "isSecret": { "enum": [true] }, |
193 | 195 | "sectionCaption": { "type": "string" }, |
194 | | - "sectionDescription": { "type": "string" } |
| 196 | + "sectionDescription": { "type": "string" }, |
| 197 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
195 | 198 | } |
196 | 199 | } |
197 | 200 | }, |
|
226 | 229 | "placeholderValue": { "type": "string" }, |
227 | 230 | "patternKey": { "type": "string" }, |
228 | 231 | "patternValue": { "type": "string" }, |
229 | | - "isSecret": { "enum": [false] } |
| 232 | + "isSecret": { "enum": [false] }, |
| 233 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
230 | 234 | }, |
231 | 235 | "unevaluatedProperties": false, |
232 | 236 | "allOf": [ |
|
323 | 327 | "sectionCaption": { "type": "string" }, |
324 | 328 | "sectionDescription": { "type": "string" }, |
325 | 329 | "items": { "$ref": "#/definitions/arrayItems" }, |
326 | | - "isSecret": { "enum": [true] } |
| 330 | + "isSecret": { "enum": [true] }, |
| 331 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
327 | 332 | } |
328 | 333 | } |
329 | 334 | }, |
|
367 | 372 | }, |
368 | 373 | "additionalProperties": { |
369 | 374 | "type": "boolean" |
370 | | - } |
| 375 | + }, |
| 376 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
371 | 377 | }, |
372 | 378 | "unevaluatedProperties": false, |
373 | 379 | "allOf": [ |
|
422 | 428 | }, |
423 | 429 | "additionalProperties": { |
424 | 430 | "type": "boolean" |
425 | | - } |
| 431 | + }, |
| 432 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
426 | 433 | } |
427 | 434 | } |
428 | 435 | }, |
|
442 | 449 | "unit": { "type": "string" }, |
443 | 450 | "editor": { "enum": ["number", "hidden"] }, |
444 | 451 | "sectionCaption": { "type": "string" }, |
445 | | - "sectionDescription": { "type": "string" } |
| 452 | + "sectionDescription": { "type": "string" }, |
| 453 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
446 | 454 | }, |
447 | 455 | "required": ["type", "title", "description"], |
448 | 456 | "if": { |
|
471 | 479 | "unit": { "type": "string" }, |
472 | 480 | "editor": { "enum": ["number", "hidden"] }, |
473 | 481 | "sectionCaption": { "type": "string" }, |
474 | | - "sectionDescription": { "type": "string" } |
| 482 | + "sectionDescription": { "type": "string" }, |
| 483 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
475 | 484 | }, |
476 | 485 | "required": ["type", "title", "description"], |
477 | 486 | "if": { |
|
499 | 508 | "groupDescription": { "type": "string" }, |
500 | 509 | "editor": { "enum": ["checkbox", "hidden"] }, |
501 | 510 | "sectionCaption": { "type": "string" }, |
502 | | - "sectionDescription": { "type": "string" } |
| 511 | + "sectionDescription": { "type": "string" }, |
| 512 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
503 | 513 | }, |
504 | 514 | "required": ["type", "title", "description"], |
505 | 515 | "if": { |
|
541 | 551 | "minLength": { "type": "integer" }, |
542 | 552 | "maxLength": { "type": "integer" }, |
543 | 553 | "sectionCaption": { "type": "string" }, |
544 | | - "sectionDescription": { "type": "string" } |
| 554 | + "sectionDescription": { "type": "string" }, |
| 555 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
545 | 556 | }, |
546 | 557 | "required": ["type", "title", "description", "resourceType"], |
547 | 558 | "allOf": [ |
|
600 | 611 | "uniqueItems": { "type": "boolean" }, |
601 | 612 | "resourceType": { "enum": ["dataset", "keyValueStore", "requestQueue"] }, |
602 | 613 | "sectionCaption": { "type": "string" }, |
603 | | - "sectionDescription": { "type": "string" } |
| 614 | + "sectionDescription": { "type": "string" }, |
| 615 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
604 | 616 | }, |
605 | 617 | "required": ["type", "title", "description", "resourceType"], |
606 | 618 | "allOf": [ |
|
652 | 664 | "nullable": { "type": "boolean" }, |
653 | 665 | "editor": { "enum": ["json", "hidden"] }, |
654 | 666 | "sectionCaption": { "type": "string" }, |
655 | | - "sectionDescription": { "type": "string" } |
| 667 | + "sectionDescription": { "type": "string" }, |
| 668 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
656 | 669 | }, |
657 | 670 | "required": ["type", "title", "description", "editor"], |
658 | 671 | "if": { |
|
687 | 700 | "type": "array", |
688 | 701 | "items": { "type": "string" }, |
689 | 702 | "minItems": 1 |
690 | | - } |
| 703 | + }, |
| 704 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
691 | 705 | }, |
692 | 706 | "required": ["type", "title", "description", "enum"], |
693 | 707 | "if": { |
|
714 | 728 | "nullable": { "type": "boolean" }, |
715 | 729 | "minLength": { "type": "integer" }, |
716 | 730 | "maxLength": { "type": "integer" }, |
717 | | - "editor": { "enum": ["javascript", "python", "textfield", "textarea", "datepicker", "select", "fileupload", "hidden"] } |
| 731 | + "editor": { "enum": ["javascript", "python", "textfield", "textarea", "datepicker", "select", "fileupload", "hidden"] }, |
| 732 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
718 | 733 | }, |
719 | 734 | "required": ["type", "title", "description"], |
720 | 735 | "allOf": [ |
|
790 | 805 | "placeholderKey": { "type": "string" }, |
791 | 806 | "placeholderValue": { "type": "string" }, |
792 | 807 | "patternKey": { "type": "string" }, |
793 | | - "patternValue": { "type": "string" } |
| 808 | + "patternValue": { "type": "string" }, |
| 809 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
794 | 810 | }, |
795 | 811 | "required": ["type", "title", "description"], |
796 | 812 | "unevaluatedProperties": false, |
|
886 | 902 | "minimum": { "type": "integer" }, |
887 | 903 | "maximum": { "type": "integer" }, |
888 | 904 | "unit": { "type": "string" }, |
889 | | - "editor": { "enum": ["number", "hidden"] } |
| 905 | + "editor": { "enum": ["number", "hidden"] }, |
| 906 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
890 | 907 | }, |
891 | 908 | "required": ["type", "title", "description"], |
892 | 909 | "if": { |
|
913 | 930 | "minimum": { "type": "number" }, |
914 | 931 | "maximum": { "type": "number" }, |
915 | 932 | "unit": { "type": "string" }, |
916 | | - "editor": { "enum": ["number", "hidden"] } |
| 933 | + "editor": { "enum": ["number", "hidden"] }, |
| 934 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
917 | 935 | }, |
918 | 936 | "required": ["type", "title", "description"], |
919 | 937 | "if": { |
|
939 | 957 | "nullable": { "type": "boolean" }, |
940 | 958 | "groupCaption": { "type": "string" }, |
941 | 959 | "groupDescription": { "type": "string" }, |
942 | | - "editor": { "enum": ["checkbox", "hidden"] } |
| 960 | + "editor": { "enum": ["checkbox", "hidden"] }, |
| 961 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
943 | 962 | }, |
944 | 963 | "required": ["type", "title", "description"], |
945 | 964 | "if": { |
|
977 | 996 | }, |
978 | 997 | "additionalProperties": { |
979 | 998 | "type": "boolean" |
980 | | - } |
| 999 | + }, |
| 1000 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
981 | 1001 | }, |
982 | 1002 | "required": ["type", "title", "description"], |
983 | 1003 | "if": { |
|
1017 | 1037 | "nullable": { "type": "boolean" }, |
1018 | 1038 | "pattern": { "type": "string" }, |
1019 | 1039 | "minLength": { "type": "integer" }, |
1020 | | - "maxLength": { "type": "integer" } |
| 1040 | + "maxLength": { "type": "integer" }, |
| 1041 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
1021 | 1042 | }, |
1022 | 1043 | "required": ["type", "title", "description", "resourceType"], |
1023 | 1044 | "if": { |
|
1057 | 1078 | "minItems": { "type": "integer" }, |
1058 | 1079 | "maxItems": { "type": "integer" }, |
1059 | 1080 | "uniqueItems": { "type": "boolean" }, |
1060 | | - "resourceType": { "enum": ["dataset", "keyValueStore", "requestQueue"] } |
| 1081 | + "resourceType": { "enum": ["dataset", "keyValueStore", "requestQueue"] }, |
| 1082 | + "errorMessage": { "$ref": "#/definitions/errorMessage" } |
1061 | 1083 | }, |
1062 | 1084 | "required": ["type", "title", "description", "resourceType"], |
1063 | 1085 | "if": { |
|
1601 | 1623 | "required": ["type"] |
1602 | 1624 | } |
1603 | 1625 | } |
| 1626 | + }, |
| 1627 | + "errorMessage": { |
| 1628 | + "title": "Utils: Custom error message definition", |
| 1629 | + "type": "object", |
| 1630 | + "properties": { |
| 1631 | + "type": { "type": "string" }, |
| 1632 | + "pattern": { "type": "string" }, |
| 1633 | + "minLength": { "type": "string" }, |
| 1634 | + "maxLength": { "type": "string" }, |
| 1635 | + "enum": { "type": "string" }, |
| 1636 | + "minimum": { "type": "string" }, |
| 1637 | + "maximum": { "type": "string" }, |
| 1638 | + "minItems": { "type": "string" }, |
| 1639 | + "maxItems": { "type": "string" }, |
| 1640 | + "uniqueItems": { "type": "string" }, |
| 1641 | + "minProperties": { "type": "string" }, |
| 1642 | + "maxProperties": { "type": "string" }, |
| 1643 | + "patternKey": { "type": "string" }, |
| 1644 | + "patternValue": { "type": "string" } |
| 1645 | + }, |
| 1646 | + "additionalProperties": false |
1604 | 1647 | } |
1605 | 1648 | } |
1606 | 1649 | } |
0 commit comments