Skip to content

Commit 8d11506

Browse files
authored
Merge pull request #94 from WesDowney/master
Documented that use_kwargs can accept a callable as a param arg
2 parents 82992d2 + 7687c7c commit 8d11506

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flask_apispec/annotations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def get_pets(**kwargs):
2020
return Pet.query.filter_by(**kwargs).all()
2121
2222
:param args: Mapping of argument names to :class:`Field <marshmallow.fields.Field>`
23-
objects, or :class:`Schema <marshmallow.Schema>`
23+
objects, :class:`Schema <marshmallow.Schema>`, or a callable which accepts a
24+
request and returns a :class:`Schema <marshmallow.Schema>`
2425
:param locations: Default request locations to parse
2526
:param inherit: Inherit args from parent classes
2627
:param apply: Parse request with specified args

0 commit comments

Comments
 (0)