pyopenapi/pyswagger

Should use yaml.safe_load()

DenesPal opened this issue · 1 comments

Instead of yaml.load(obj) near getter.py:48 should use yaml.safe_load(obj) to suppress security warning. See https://msg.pyyaml.org/load for explanation.

@DenesPal any idea if this changes have been implemented having this error recently
.venv/lib/python3.7/site-packages/pyswagger/getter.py:48: in __next__ obj = yaml.load(obj) E TypeError: load() missing 1 required positional argument: 'Loader'