Skip to content

Commit

Permalink
Revert "fixes RecursionError"
Browse files Browse the repository at this point in the history
This reverts commit 558f0b8.
  • Loading branch information
zrq495 committed Jan 24, 2019
1 parent f90819f commit d7ada2a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions swagger_py_codegen/jsonschema.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,7 @@ def _normalize_dict(schema, data):

# get value
value, has_key = data.get_check(key)
if has_key and '$ref' in _schema:
result[key] = _normalize(_schema, value)
elif has_key:
if has_key or '$ref' in _schema:
result[key] = _normalize(_schema, value)
elif 'default' in _schema:
result[key] = _schema['default']
Expand Down

0 comments on commit d7ada2a

Please sign in to comment.