From 7bbe2bc44d92bc96953507bf6120339210d05c2a Mon Sep 17 00:00:00 2001 From: Levis Florian Date: Sun, 25 Aug 2019 01:46:54 +0200 Subject: [PATCH] docs(swagger): fix `/carts/{token}/multiple-items` Class `src/Controller/Cart/PutItemsToCartAction.php#L75` expect items to in an `items` property from the payload --- doc/swagger.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/doc/swagger.yml b/doc/swagger.yml index 764bd242d..b5db24ee1 100644 --- a/doc/swagger.yml +++ b/doc/swagger.yml @@ -1044,11 +1044,14 @@ definitions: type: "string" example: "HAT_SIZE_S" PutItemsToCartRequest: - type: "array" + type: "object" description: "Body of request used to put item to the cart." - items: - type: "object" - $ref: "#/definitions/PutItemToCartRequest" + properties: + items: + type: "array" + items: + type: "object" + $ref: "#/definitions/PutItemToCartRequest" ChangeItemQuantityRequest: type: "object" description: "Body of request used to change quantity of an item."