krakenjs / swaggerize-routes

Swagger document driven route builder.
Other
58 stars 57 forks source link

`file` type definition does not match swagger spec #54

Closed kenjones-cisco closed 8 years ago

kenjones-cisco commented 8 years ago

The following block of code indicates that consumes should be a string.

                consumes: {
                    type: 'string',
                    pattern: /multipart\/form-data|application\/x-www-form-urlencoded/,
                    required: true
                },

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.