Skip to content

Commit d9480be

Browse files
committed
add Example property for the array
1 parent 5d3c6e8 commit d9480be

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

forward_engineering/helpers/typeHelper.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ function getTypeProps(data, key, isParentActivated) {
3636
nullable: data.nullable,
3737
discriminator: data.discriminator,
3838
readOnly: data.readOnly,
39+
example: parseExample(data.sample),
3940
xml: getXml(data.xml)
4041
};
4142
const arrayChoices = getChoices(data, key);

properties_pane/field_level/fieldLevelConfig.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,16 @@ making sure that you maintain a proper JSON format.
10331033
],
10341034
"enableForReference": true
10351035
},
1036+
{
1037+
"propertyName": "example",
1038+
"propertyKeyword": "sample",
1039+
"propertyType": "details",
1040+
"template": "textAreaJson",
1041+
"dependency": {
1042+
"key": "subtype",
1043+
"value": "schema"
1044+
}
1045+
},
10361046
"comments"
10371047
],
10381048
"object": [

0 commit comments

Comments
 (0)