Add query_serializer argument to swagger_auto_schema (#17)

Closes #16.
This commit is contained in:
Cristi Vîjdea
2017-12-16 15:37:42 +01:00
committed by GitHub
parent bdf7e8a4ae
commit 73bd7a136d
9 changed files with 190 additions and 37 deletions
+5
View File
@@ -116,6 +116,7 @@ class SwaggerDict(OrderedDict):
@staticmethod
def _as_odict(obj):
"""Implementation detail of :meth:`.as_odict`"""
if isinstance(obj, dict):
result = OrderedDict()
for attr, val in obj.items():
@@ -127,6 +128,10 @@ class SwaggerDict(OrderedDict):
return obj
def as_odict(self):
"""Convert this object into an ``OrderedDict`` instance.
:rtype: OrderedDict
"""
return SwaggerDict._as_odict(self)
def __reduce__(self):