Skip to content

Commit 8e58b33

Browse files
committed
[TASK] Allow renderType for type Text
Fixes: #536 (cherry picked from commit f92aad9)
1 parent 9eb3fea commit 8e58b33

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
@@ -475,6 +475,10 @@
475475
"description": "Renders the field in a way that the user can see the value but cannot edit it.",
476476
"default": false
477477
},
478+
"renderType": {
479+
"type": "string",
480+
"description": "Defines the rendering type of the field."
481+
},
478482
"required": {
479483
"type": "boolean",
480484
"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
@@ -587,6 +587,10 @@
587587
"description": "Renders the field in a way that the user can see the value but cannot edit it.",
588588
"default": false
589589
},
590+
"renderType": {
591+
"type": "string",
592+
"description": "Defines the rendering type of the field."
593+
},
590594
"required": {
591595
"type": "boolean",
592596
"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
@@ -527,6 +527,10 @@
527527
"description": "Renders the field in a way that the user can see the value but cannot edit it.",
528528
"default": false
529529
},
530+
"renderType": {
531+
"type": "string",
532+
"description": "Defines the rendering type of the field."
533+
},
530534
"required": {
531535
"type": "boolean",
532536
"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
@@ -578,6 +578,10 @@
578578
"description": "Renders the field in a way that the user can see the value but cannot edit it.",
579579
"default": false
580580
},
581+
"renderType": {
582+
"type": "string",
583+
"description": "Defines the rendering type of the field."
584+
},
581585
"required": {
582586
"type": "boolean",
583587
"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
@@ -736,6 +736,10 @@
736736
"description": "Renders the field in a way that the user can see the value but cannot edit it.",
737737
"default": false
738738
},
739+
"renderType": {
740+
"type": "string",
741+
"description": "Defines the rendering type of the field."
742+
},
739743
"required": {
740744
"type": "boolean",
741745
"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
@@ -83,6 +83,7 @@ public static function textFieldSchemaValidationWorksAsExpectedDataProvider(): i
8383
],
8484
],
8585
],
86+
'renderType' => 'foo',
8687
],
8788
],
8889
],

0 commit comments

Comments
 (0)