Skip to content

Commit a3b305d

Browse files
Update bin/docs_scripts/generate_json_schemas.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 7b930e1 commit a3b305d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

bin/docs_scripts/generate_json_schemas.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -380,12 +380,8 @@ def generate_sdk_documentation():
380380
# Clean types of empty types
381381

382382
# 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)
383+
# Remove types that have no properties and no examples
384+
types_list = [t for t in types_list if len(t['properties']) > 0 or t['example'] != '']
389385

390386
# Collect classes
391387
classes_list = []

0 commit comments

Comments
 (0)