pyswagger
pyswagger copied to clipboard
Backward compatible Update to support Python 3.10 that Passes all unit tests
This pull makes three minor changes to enable pyswagger to be used with Python 3.10 and the current versions of PyYaml and Flask.
These changes should be backward compatible, and pass all unit tests.
- Adapt to the move of
collections.Mappingandcollections.MutableMappingtocollections.abc.Mappingandcollections.abc.MutableMapping. - Use PyYAML's
yaml.safe_loadinstead ofyaml.load, which now requires an additional argument, and also prevent arbitrary code execution. - Update the flask tests to account for a change in how multiple values for the same header key are handled.