Skip to content

Commit f27f830

Browse files
sonthonaxrkRollo Konig Brock
authored andcommitted
Support Marshmallow Schemas in Function Based Views
1 parent 1ee8687 commit f27f830

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

flasgger/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ def get_specs(rules, ignore_verbs, optional_fields, sanitizer, doc_dir=None):
108108
swagged = False
109109

110110
if getattr(method, 'specs_dict', None):
111-
merge_specs(swag, deepcopy(method.specs_dict))
111+
merge_specs(
112+
swag,
113+
convert_schemas(deepcopy(method.specs_dict))
114+
)
112115
swagged = True
113116

114117
view_class = getattr(endpoint, 'view_class', None)

0 commit comments

Comments
 (0)