Open
Description
It is reported that locations=('json', 'files')
in @Namespace.parameters
decorator breaks Swagger config:
@api.parameters(
parameters.CreateTeamParameters(),
locations=('json', 'files')
)
def post(self, ...):
...
The Swagger config results in:
"schema": {
"properties": {
"source_file": {
"type": "file"
},
...
},
"type": "object"
}
Instead of
"parameters": [
{
"in": "formData",
"name": "source_file",
"required": false,
"type": "file"
},
...
]
This might be related to #20.
/cc @DurandA