Skip to content

Commit f92aad9

Browse files
committed
[TASK] Allow renderType for type Text
Fixes: #536
1 parent 00fd485 commit f92aad9

7 files changed

Lines changed: 25 additions & 0 deletions

File tree

Build/JsonSchema/SchemaSources/FieldTypes/text.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@
9090
"description": "Renders the field in a way that the user can see the value but cannot edit it.",
9191
"default": false
9292
},
93+
"renderType": {
94+
"type": "string",
95+
"description": "Defines the rendering type of the field."
96+
},
9397
"required": {
9498
"type": "boolean",
9599
"description": "If set, the field becomes mandatory.",

JsonSchema/basic.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,10 @@
486486
"description": "Renders the field in a way that the user can see the value but cannot edit it.",
487487
"default": false
488488
},
489+
"renderType": {
490+
"type": "string",
491+
"description": "Defines the rendering type of the field."
492+
},
489493
"required": {
490494
"type": "boolean",
491495
"description": "If set, the field becomes mandatory.",

JsonSchema/content-element.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,10 @@
621621
"description": "Renders the field in a way that the user can see the value but cannot edit it.",
622622
"default": false
623623
},
624+
"renderType": {
625+
"type": "string",
626+
"description": "Defines the rendering type of the field."
627+
},
624628
"required": {
625629
"type": "boolean",
626630
"description": "If set, the field becomes mandatory.",

JsonSchema/file-type.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,10 @@
538538
"description": "Renders the field in a way that the user can see the value but cannot edit it.",
539539
"default": false
540540
},
541+
"renderType": {
542+
"type": "string",
543+
"description": "Defines the rendering type of the field."
544+
},
541545
"required": {
542546
"type": "boolean",
543547
"description": "If set, the field becomes mandatory.",

JsonSchema/page-type.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,10 @@
659659
"description": "Renders the field in a way that the user can see the value but cannot edit it.",
660660
"default": false
661661
},
662+
"renderType": {
663+
"type": "string",
664+
"description": "Defines the rendering type of the field."
665+
},
662666
"required": {
663667
"type": "boolean",
664668
"description": "If set, the field becomes mandatory.",

JsonSchema/record-type.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,10 @@
747747
"description": "Renders the field in a way that the user can see the value but cannot edit it.",
748748
"default": false
749749
},
750+
"renderType": {
751+
"type": "string",
752+
"description": "Defines the rendering type of the field."
753+
},
750754
"required": {
751755
"type": "boolean",
752756
"description": "If set, the field becomes mandatory.",

Tests/Unit/JsonSchemaValidation/TextFieldSchemaTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public static function textFieldSchemaValidationWorksAsExpectedDataProvider(): i
8484
],
8585
],
8686
],
87+
'renderType' => 'foo',
8788
],
8889
],
8990
],

0 commit comments

Comments
 (0)