Skip to content

Commit

Permalink
Merge c732fc6 into a9b0867
Browse files Browse the repository at this point in the history
  • Loading branch information
tobixx committed Apr 28, 2017
2 parents a9b0867 + c732fc6 commit d2bfa81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flasgger/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@ def validate(data=None, schema_id=None, filepath=None, root=None,
definitions[defi['id']] = defi

# support definitions informed in dict
if schema_id in swag.get('definitions', {}):
main_def = swag.get('definitions', {}).get(schema_id)
swag_defs = swag.get('definitions')
if swag_defs:
definitions.update(swag_defs)

main_def['definitions'] = definitions

Expand Down

0 comments on commit d2bfa81

Please sign in to comment.