Skip to content

Commit c58d1ca

Browse files
authored
Update properties_to_json.py
1 parent fa53e22 commit c58d1ca

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scripts/properties_to_json.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@
9090
version not in existing_item["versions"]
9191
), f"CodeMeta {version} has duplicated property {item}"
9292
existing_item["versions"].append(version)
93+
94+
# values from newer versions of properties_description.json take precedence
95+
# over new ones
96+
if item["Type"]:
97+
existing_item["Type"] = item["Type"]
98+
if item["Description"]:
99+
existing_item["Description"] = item["Description"]
93100
break
94101
else:
95102
# No similar item, create a new one

0 commit comments

Comments
 (0)