We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 581baa6 commit 558f0b8Copy full SHA for 558f0b8
swagger_py_codegen/jsonschema.py
@@ -197,7 +197,9 @@ def _normalize_dict(schema, data):
197
198
# get value
199
value, has_key = data.get_check(key)
200
- if has_key or '$ref' in _schema:
+ if has_key and '$ref' in _schema:
201
+ result[key] = _normalize(_schema, value)
202
+ elif has_key:
203
result[key] = _normalize(_schema, value)
204
elif 'default' in _schema:
205
result[key] = _schema['default']
0 commit comments