We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b930e1 commit a3b305dCopy full SHA for a3b305d
bin/docs_scripts/generate_json_schemas.py
@@ -380,12 +380,8 @@ def generate_sdk_documentation():
380
# Clean types of empty types
381
382
# Remove types that have no properties and no examples
383
- for type_info in types_list[:]:
384
- has_properties = len(type_info["properties"]) > 0
385
- has_example = type_info["example"] != ""
386
-
387
- if not (has_properties or has_example):
388
- types_list.remove(type_info)
+ # Remove types that have no properties and no examples
+ types_list = [t for t in types_list if len(t['properties']) > 0 or t['example'] != '']
389
390
# Collect classes
391
classes_list = []
0 commit comments