Fix the examples in the swagger API documentation to be valid JSON
This commit is contained in:
parent
7f81501762
commit
63f08bace6
3 changed files with 6 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue