Fix choices for return values. (#76070)

pull/76091/head
Felix Fontein 3 years ago committed by GitHub
parent 6e6f846db1
commit 227f4398c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -423,6 +423,7 @@ def return_schema(for_collection):
Required('type'): Any('bool', 'complex', 'dict', 'float', 'int', 'list', 'str'),
'version_added': version(for_collection),
'version_added_collection': collection_name,
'choices': Any([object], (object,)),
'sample': json_value,
'example': json_value,
'contains': Any(None, *list_dict_return_contains_schema),

Loading…
Cancel
Save