bravado-core
bravado-core copied to clipboard
``` python from mock import Mock from bravado_core.param import add_file, Param from bravado_core.operation import Operation from bravado_core.spec import Spec empty_swagger_spec = Spec(spec_dict={}) request = {} op = Mock(spec=Operation, consumes=['multipart/form-data']) param_spec...
I'm writing a test suite with .tox to validate a spec against an existing API and this error is raised with Python 3.4 and Python3.5. Apparently empty bytearrays aren't considered...
In bravado `v9`, this [line](https://github.com/Yelp/bravado-core/blob/master/bravado_core/param.py#L120) is raising a `bravado_core.exception.SwaggerMappingError` in case that the request param type is not satisfied. This is totally fine in a common scenario, but in a...
When a param has a `format`, the formatter will coerce the value to that type instead of failing when validate_requests is enabled. Pet Store example using bravado - `petId` has...
I have a working Open API, which bravado gives the docstring below for. The `param_spec` which gets passed in is listed below that. `create_param_docstring` doesn't know how to dereference `$ref`'d...
using the yaml file from the swagger [editor](http://editor.swagger.io/#/) I saved it as a yaml file and tried to load it in the same way that the pyramid_swagger project loads the...
Please refer to https://github.com/Yelp/bravado-core/pull/144#issuecomment-277810200
https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#composition-and-inheritance-polymorphism
When defining custom formatters with SwaggerFormat, the validate function has to handle None values. So all my validators are littered with code like this: ```python def my_validator(val): if val is...
Hi, Thank you for validator, we have some trouble with it on type file, perhaps have you an idea. When a method return a file, ``` app_1 | File "/usr/lib/python3.5/site-packages/bottle_swagger.py",...