more correct openapi json
This commit is contained in:
@@ -871,6 +871,18 @@
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"Price": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"exVat": { "type": "integer", "format": "int64" },
|
||||
"incVat": { "type": "integer", "format": "int64" },
|
||||
"vat": {
|
||||
"type": "object",
|
||||
"additionalProperties": { "type": "integer", "format": "int64" }
|
||||
}
|
||||
},
|
||||
"required": ["exVat", "incVat"]
|
||||
},
|
||||
"CartGrain": {
|
||||
"type": "object",
|
||||
"description": "Cart aggregate (actor state)",
|
||||
@@ -883,9 +895,9 @@
|
||||
"type": "array",
|
||||
"items": { "$ref": "#/components/schemas/CartItem" }
|
||||
},
|
||||
"totalPrice": { "type": "integer", "format": "int64" },
|
||||
"totalPrice": { "$ref": "#/components/schemas/Price" },
|
||||
"totalTax": { "type": "integer", "format": "int64" },
|
||||
"totalDiscount": { "type": "integer", "format": "int64" },
|
||||
"totalDiscount": { "$ref": "#/components/schemas/Price" },
|
||||
"deliveries": {
|
||||
"type": "array",
|
||||
"items": { "$ref": "#/components/schemas/CartDelivery" }
|
||||
@@ -904,6 +916,7 @@
|
||||
"$ref": "#/components/schemas/SubscriptionDetails"
|
||||
}
|
||||
},
|
||||
"userId": { "type": "string" },
|
||||
"confirmationViewCount": { "type": "integer" },
|
||||
"confirmationLastViewedAt": {
|
||||
"type": "string",
|
||||
@@ -927,10 +940,10 @@
|
||||
"parentId": { "type": "integer" },
|
||||
"sku": { "type": "string" },
|
||||
"name": { "type": "string" },
|
||||
"price": { "type": "integer", "format": "int64" },
|
||||
"totalPrice": { "type": "integer", "format": "int64" },
|
||||
"price": { "$ref": "#/components/schemas/Price" },
|
||||
"totalPrice": { "$ref": "#/components/schemas/Price" },
|
||||
"totalTax": { "type": "integer", "format": "int64" },
|
||||
"orgPrice": { "type": "integer", "format": "int64" },
|
||||
"orgPrice": { "$ref": "#/components/schemas/Price" },
|
||||
"stock": {
|
||||
"type": "integer",
|
||||
"description": "0=OutOfStock,1=LowStock,2=InStock"
|
||||
@@ -963,7 +976,7 @@
|
||||
"properties": {
|
||||
"id": { "type": "integer" },
|
||||
"provider": { "type": "string" },
|
||||
"price": { "type": "integer", "format": "int64" },
|
||||
"price": { "$ref": "#/components/schemas/Price" },
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": { "type": "integer" }
|
||||
|
||||
Reference in New Issue
Block a user