File parameter is used in an operation where the 'consumes' property does not allow it
Issue ID: semantic-parameter-file
Description
The parameter file
is used in an operation where the consumes
property does not allow it. This can happen if you have not defined the consumes
property as:
multipart/form-data
application/x-www-form-urlencoded
For more details, see the OpenAPI Specification.
Remediation
Make sure that the consumes
property allows using the file
parameter, or remove the parameter.