In petstore example of POST /store/order consumes is not defined
if consumes is not provided at operation or global level, do we need to use application/json as default consumes in case of POST operation?
An empty consumes for an operation is documented as follows: "An empty value MAY be used to clear the global definition." Now, I don't see any documentation in the spec with how an empty global consumes is to be handled.
In petstore example of POST /store/order consumes is not defined and swagger.io (http://petstore.swagger.io/) uses the default consumer as "application/json".
is it excepted behavior? if yes nothing is specified in swagger specification about this default value
"/store/order": { "post": { "tags": ["store"], "summary": "Place an order for a pet", "description": "", "operationId": "placeOrder", "produces": ["application/xml", "application/json"], "parameters": [{ "in": "body", "name": "body", "description": "order placed for purchasing the pet", "required": true, "schema": { "$ref": "#/definitions/Order" } }], "responses": { "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/Order" } }, "400": { "description": "Invalid Order" } } } },