Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
JSON Schema for Swagger 2.0 now disallows 'id' in definitions, so we …
Browse files Browse the repository at this point in the history
…simply pop before output
  • Loading branch information
atlithorn committed Apr 15, 2015
1 parent c8e799b commit 248a8b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_swagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def spec():
if responses is not None:
defs = defs + _extract_definitions(responses.values())
for definition in defs:
def_id = definition.get('id')
def_id = definition.pop('id')
if def_id is not None:
definitions[def_id].update(definition)
operation = dict(
Expand Down

0 comments on commit 248a8b3

Please sign in to comment.