diff --git a/pyswagger/getter.py b/pyswagger/getter.py index abdc8fb..2bfea37 100644 --- a/pyswagger/getter.py +++ b/pyswagger/getter.py @@ -45,7 +45,7 @@ def __next__(self): if obj.startswith('{'): obj = json.loads(obj) else: - obj = yaml.load(obj) + obj = yaml.load(obj, Loader=yaml.FullLoader) except ValueError: raise Exception('Unknown format startswith {0} ...'.format(obj[:10]))