Skip to content

Commit 6f580a5

Browse files
committed
wip
1 parent 8755b01 commit 6f580a5

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

openapi.json

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@
5252
"description": "Success response",
5353
"headers": {
5454
"Signature": {
55-
"schema": {
56-
"type": "string",
57-
"example": "3WGqCnWJArhA224xVdUY1fPh91tpd6va6JvBrPNuHK449TZTgsRn3DBu5UBGbcTn"
58-
}
55+
"$ref": "#/components/headers/Signature"
5956
}
6057
},
6158
"content": {
@@ -88,7 +85,7 @@
8885
},
8986
"total": {
9087
"type": "number",
91-
"example": "25.0"
88+
"example": 25.0
9289
},
9390
"paymentUrl": {
9491
"type": "string",
@@ -113,6 +110,14 @@
113110
}
114111
},
115112
"components": {
113+
"headers": {
114+
"Signature": {
115+
"schema": {
116+
"type": "string",
117+
"example": "3WGqCnWJArhA224xVdUY1fPh91tpd6va6JvBrPNuHK449TZTgsRn3DBu5UBGbcTn"
118+
}
119+
}
120+
},
116121
"parameters": {
117122
"Signature": {
118123
"name": "Signature",
@@ -194,15 +199,21 @@
194199
},
195200
"discount": {
196201
"type": "number",
197-
"default": 0
202+
"default": 0,
203+
"exclusiveMinimum": false,
204+
"minimum": 0
198205
},
199206
"shippingCost": {
200207
"type": "number",
201-
"default": 0
208+
"default": 0,
209+
"exclusiveMinimum": false,
210+
"minimum": 0
202211
},
203212
"total": {
204213
"type": "number",
205-
"default": 0
214+
"default": 0,
215+
"exclusiveMinimum": true,
216+
"minimum": 0
206217
},
207218
"delivery": {
208219
"$ref": "#/components/schemas/Delivery"

0 commit comments

Comments
 (0)