Skip to content

Commit 45233c0

Browse files
committed
spec: accept UPC parameter as string
UPCs often start with a zero, which cannot be represented as an integer
1 parent 7b07394 commit 45233c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spoonacular-openapi-3.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8436,8 +8436,8 @@
84368436
"name": "upc",
84378437
"description": "The product's UPC.",
84388438
"schema": {
8439-
"type": "integer",
8440-
"example": 41631000564
8439+
"type": "string",
8440+
"example": "041631000564"
84418441
},
84428442
"required": true,
84438443
"style": "simple",
@@ -8800,8 +8800,8 @@
88008800
"name": "upc",
88018801
"description": "The UPC of the product for which you want to find comparable products.",
88028802
"schema": {
8803-
"type": "integer",
8804-
"example": 33698816271
8803+
"type": "string",
8804+
"example": "033698816271"
88058805
},
88068806
"required": true,
88078807
"style": "simple",

0 commit comments

Comments
 (0)