fix(schema): fix event type inheritance error (#67)

This commit is contained in:
matthewhyx 2024-01-08 14:40:42 +08:00 committed by GitHub
parent 711c2be2b1
commit 658dbec25a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -310,7 +310,7 @@ class SPGSchemaMarkLang:
spg_type = EntityType(
name=f"{self.namespace}.{type_name}", name_zh=type_name_zh
)
if type_class == "EventType":
if parent_spg_type.spg_type_enum == SpgTypeEnum.Event:
spg_type = EventType(
name=f"{self.namespace}.{type_name}", name_zh=type_name_zh
)