Add comment to swagger parsing thing
This commit is contained in:
parent
934dd4754c
commit
a2860beb68
1 changed files with 3 additions and 0 deletions
|
@ -359,6 +359,9 @@ def get_example_for_response(response):
|
||||||
# be formatted as raw objects rather than json-formatted strings, but we
|
# be formatted as raw objects rather than json-formatted strings, but we
|
||||||
# have lots of the latter in our spec, which work with the swagger UI,
|
# have lots of the latter in our spec, which work with the swagger UI,
|
||||||
# so grandfather them in.
|
# so grandfather them in.
|
||||||
|
#
|
||||||
|
# FIXME: swagger-ui no longer supports this. We should fix the inputs
|
||||||
|
# and remove the grandfathering.
|
||||||
if isinstance(exampleobj, basestring):
|
if isinstance(exampleobj, basestring):
|
||||||
return exampleobj
|
return exampleobj
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue