The swagger spec (2.0) shows that consumes is a list of strings.
consumes [string] A list of MIME types the operation can consume. This overrides the consumes definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
The following block of code indicates that consumes should be a string.
The swagger spec (2.0) shows that consumes is a list of strings.