Skip to content

Commit 9c6163c

Browse files
committed
Update schemas
1 parent 2c9f647 commit 9c6163c

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

dotcom-rendering/src/frontend/schemas/feArticle.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4437,7 +4437,7 @@
44374437
"type": "string"
44384438
},
44394439
"starRating": {
4440-
"type": "string"
4440+
"$ref": "#/definitions/ProductStarRating"
44414441
},
44424442
"productName": {
44434443
"type": "string"
@@ -4525,6 +4525,18 @@
45254525
"starRating"
45264526
]
45274527
},
4528+
"ProductStarRating": {
4529+
"enum": [
4530+
"0",
4531+
"1",
4532+
"2",
4533+
"3",
4534+
"4",
4535+
"5",
4536+
"none-selected"
4537+
],
4538+
"type": "string"
4539+
},
45284540
"ProductImage": {
45294541
"type": "object",
45304542
"properties": {

dotcom-rendering/src/model/block-schema.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3925,7 +3925,7 @@
39253925
"type": "string"
39263926
},
39273927
"starRating": {
3928-
"type": "string"
3928+
"$ref": "#/definitions/ProductStarRating"
39293929
},
39303930
"productName": {
39313931
"type": "string"
@@ -4013,6 +4013,18 @@
40134013
"starRating"
40144014
]
40154015
},
4016+
"ProductStarRating": {
4017+
"enum": [
4018+
"0",
4019+
"1",
4020+
"2",
4021+
"3",
4022+
"4",
4023+
"5",
4024+
"none-selected"
4025+
],
4026+
"type": "string"
4027+
},
40164028
"ProductImage": {
40174029
"type": "object",
40184030
"properties": {

0 commit comments

Comments
 (0)