Skip to content

Commit

Permalink
Support Marshmallow Schemas in Function Based Views
Browse files Browse the repository at this point in the history
  • Loading branch information
sonthonaxrk authored and billyrrr committed Oct 1, 2019
1 parent a4e6fa4 commit fbaa7a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flasgger/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ def get_specs(rules, ignore_verbs, optional_fields, sanitizer, doc_dir=None):
swagged = False

if getattr(method, 'specs_dict', None):
merge_specs(swag, deepcopy(method.specs_dict))
merge_specs(
swag,
convert_schemas(deepcopy(method.specs_dict))
)
swagged = True

view_class = getattr(endpoint, 'view_class', None)
Expand Down

0 comments on commit fbaa7a1

Please sign in to comment.