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.
2 parents 25969f3 + 1fd9ad2 commit 5457d04Copy full SHA for 5457d04
swagger_py_codegen/flask.py
@@ -173,7 +173,8 @@ def _process_data(self):
173
174
for status, res_data in data[method].get('responses', {}).iteritems():
175
if isinstance(status, int) or status.isdigit():
176
- example = res_data.get('schema', {}).get('application/json')
+ example = res_data.get('examples', {}).get('application/json')
177
+
178
if not example:
179
example = build_default(res_data.get('schema'))
180
response = example, int(status), build_default(res_data.get('headers'))
0 commit comments