Skip to content

Commit 7259ef4

Browse files
committed
feat: add-model provide default property titles
1 parent 8914a5b commit 7259ef4

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

test/fixtures/add-model/expected/multiple-fields/models/pizza.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,19 @@
55
"type": "object",
66
"properties": {
77
"code": {
8+
"title": "Code",
89
"type": "string"
910
},
1011
"label": {
1112
"title": "Customer-facing label",
1213
"type": "string"
1314
},
1415
"popularitySeq": {
16+
"title": "Popularity seq",
1517
"type": "integer"
1618
},
1719
"vegetarian": {
20+
"title": "Vegetarian",
1821
"type": "boolean"
1922
}
2023
},

test/fixtures/add-model/expected/named-pizza/models/pizza.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"type": "object",
66
"properties": {
77
"name": {
8+
"title": "Name",
89
"type": "string"
910
}
1011
},

test/fixtures/add-model/expected/no-blanks-in-field-names/models/pizza.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"type": "object",
66
"properties": {
77
"name": {
8+
"title": "Name",
89
"type": "string"
910
}
1011
},

0 commit comments

Comments
 (0)