Skip to content

Commit

Permalink
Fix schema-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasaglia committed Dec 11, 2024
1 parent 7d0ff28 commit edf37a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/schema-merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def add_vals_to_unknown_object(
types = []

for ele in objects.concrete:
type = ele.properties['ty'].const
if type is not None:
types.append(type)
type = ele.properties.get('ty', None)
if type is not None and type.const:
types.append(type.const)

unknown_type_dict["properties"]["ty"]["not"]["enum"] = types

Expand Down

0 comments on commit edf37a4

Please sign in to comment.