Fix the examples in the swagger API documentation to be valid JSON

This commit is contained in:
Mark Haines 2015-09-18 14:40:48 +01:00
parent 7f81501762
commit 63f08bace6
3 changed files with 6 additions and 4 deletions

View file

@ -87,6 +87,8 @@ def get_json_schema_object_fields(obj, enforce_title=False):
desc += (
" Must be '%s'." % props[key_name]["enum"][0]
)
if isinstance(value_type, list):
value_type = " or ".join(value_type)
fields["rows"].append({
"key": key_name,