This is due to the "file" type in the response schema:
swagger_spec_validator.common.SwaggerValidationError: {u'description': u'Avatar file', u'schema': {u'type': u'file'}} is not valid under any of the given schemas
Failed validating u'oneOf' in schema[u'properties'][u'paths'][u'patternProperties'][u'^/'][u'properties'][u'get'][u'properties'][u'responses'][u'patternProperties'][u'^([0-9]{3})$|^(default)$']:
{u'oneOf': [{u'$ref': u'#/definitions/response'},
{u'$ref': u'#/definitions/jsonReference'}]}
On instance[u'paths'][u'/avatars/{avatar_id}'][u'get'][u'responses'][u'200']:
{u'description': u'Avatar file', u'schema': {u'type': u'file'}}
The following swagger spec json is deemed invalid (by the latest master):
This is due to the "file" type in the response schema:
I think this is wrong because http://editor.swagger.io/ deems it valid, and the spec http://swagger.io/specification/#responseObject seems to say this is allowed.