Skip to content

Commit 9fe163d

Browse files
committed
add title attribute property
1 parent 000bc3e commit 9fe163d

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

forward_engineering/helpers/typeHelper.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function getTypeProps(data, key, isParentActivated) {
2828
case 'array': {
2929
const arrayProps = {
3030
type,
31+
title: data.title || undefined,
3132
items: getArrayItemsType(items, isActivated && isParentActivated),
3233
collectionFormat: data.collectionFormat,
3334
minItems: data.minItems,
@@ -46,6 +47,7 @@ function getTypeProps(data, key, isParentActivated) {
4647
case 'object': {
4748
const objectProps = {
4849
type,
50+
title: data.title || undefined,
4951
description: data.description || undefined,
5052
required: required || undefined,
5153
properties: getObjectProperties(properties, isActivated && isParentActivated),
@@ -120,6 +122,7 @@ function getPrimitiveTypeProps(data) {
120122
const properties = {
121123
type: data.type,
122124
format: data.format || data.mode,
125+
title: data.title || undefined,
123126
description: data.description,
124127
exclusiveMinimum: data.exclusiveMinimum,
125128
exclusiveMaximum: data.exclusiveMaximum,

properties_pane/field_level/fieldLevelConfig.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,11 @@ making sure that you maintain a proper JSON format.
279279
"password"
280280
]
281281
},
282+
{
283+
"propertyName": "Title",
284+
"propertyKeyword": "title",
285+
"propertyType": "text"
286+
},
282287
{
283288
"propertyKeyword": "description",
284289
"enableForReference": true
@@ -456,6 +461,11 @@ making sure that you maintain a proper JSON format.
456461
"double"
457462
]
458463
},
464+
{
465+
"propertyName": "Title",
466+
"propertyKeyword": "title",
467+
"propertyType": "text"
468+
},
459469
{
460470
"propertyKeyword": "description",
461471
"enableForReference": true
@@ -637,6 +647,11 @@ making sure that you maintain a proper JSON format.
637647
"int64"
638648
]
639649
},
650+
{
651+
"propertyName": "Title",
652+
"propertyKeyword": "title",
653+
"propertyType": "text"
654+
},
640655
{
641656
"propertyKeyword": "description",
642657
"enableForReference": true
@@ -809,6 +824,11 @@ making sure that you maintain a proper JSON format.
809824
},
810825
"schemaId",
811826
"type",
827+
{
828+
"propertyName": "Title",
829+
"propertyKeyword": "title",
830+
"propertyType": "text"
831+
},
812832
{
813833
"propertyKeyword": "description",
814834
"enableForReference": true
@@ -856,6 +876,11 @@ making sure that you maintain a proper JSON format.
856876
"value": "anyParameter"
857877
}
858878
},
879+
{
880+
"propertyName": "Title",
881+
"propertyKeyword": "title",
882+
"propertyType": "text"
883+
},
859884
{
860885
"propertyKeyword": "description",
861886
"enableForReference": true
@@ -1096,6 +1121,11 @@ making sure that you maintain a proper JSON format.
10961121
}
10971122
}
10981123
},
1124+
{
1125+
"propertyName": "Title",
1126+
"propertyKeyword": "title",
1127+
"propertyType": "text"
1128+
},
10991129
{
11001130
"propertyKeyword": "description",
11011131
"enableForReference": true

0 commit comments

Comments
 (0)