swagger-parser
swagger-parser copied to clipboard
Give useful informations about your swagger files
In order to make the pull request titles more readable, this template should at least only one line * [ ] Write what your Pull request improves from a functional...
Hi! Thanks for a solid library, saved me tons of time! I am playing around with Swagger and would like to know if it is easy to accomplish fetching related...
In my [fix-arrays-in-map](https://github.com/vinnier/swagger-parser/tree/fix-arrays-in-map) branch I have a file called [maps.yaml](https://github.com/vinnier/swagger-parser/blob/fix-arrays-in-map/tests/maps.yaml) which causes some problems for swagger-parser. I came across this problem when I started using swagger-tester to test the API...
If you have something like `additionalProperties: {}` defined `get_example_from_prop_spec` will call `_example_from_complex_def` ([here](https://github.com/Trax-air/swagger-parser/blob/master/swagger_parser/swagger_parser.py#L175)), which will assume a `schema` is defined. Note: `additionalProperties: {}` is useful to allow any additional properties...
Functions `_example_from_complex_def `and `get_send_request_correct_body` do not verify if the dictionary has **['schema']['items']['$ref']**. This causes problems for the following example > "responses": > "200": > "description": >- > OK > "schema":...
Function **_get_example_from_properties** in **swagger_parser.py** contains the following code: ``` properties = local_spec.get('properties') required = local_spec.get('required', properties.keys()) ``` which throws > AttributeError: 'NoneType' object has no attribute 'keys' error if there...
Function **_example_from_array_spec** in **swagger_parser.py** contains the following line: `return example_dict[example_dict.keys()[0]]` which throws > TypeError: 'dict_keys' object does not support indexing error in Python 3 since `example_dict.keys()` returns a _view object_...