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