- 'parameterObject':
- 'type':
- 'type':
- 'enum':
- "Invalid value. file is not one of the available options (['null', 'boolean', 'integer', 'number', 'string', 'array'])"
From the Swagger 2.0 spec:
An additional primitive data type "file" is used by the Parameter Object and the Response Object to set the parameter type or the response as being a file.
and
There are five possible parameter types.
...
Form - Used to describe the payload of an HTTP request when either application/x-www-form-urlencoded, multipart/form-data or both are used as the content type of the request (in Swagger's definition, the consumes property of an operation). This is the only parameter type that can be used to send files, thus supporting the file type.
According to the Swagger 2.0 spec, I should be able to do something like this:
but in pyswagger 0.8.24 I get an error like this:
From the Swagger 2.0 spec:
and