fix: [interoperability] Avoiding validation issues with extensions properties

pull/1/head
chrisr3d 2022-02-10 20:41:57 +01:00
parent 6ec45d863c
commit eea34ebbb5
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 2 additions and 1 deletions

View File

@ -829,8 +829,9 @@ class ExtensionsProperty(DictionaryProperty):
# extensions should be pre-registered with the library).
if key.startswith('extension-definition--'):
interoperability = self.interoperability if hasattr(self, 'interoperability') else False
_validate_id(
key, self.spec_version, 'extension-definition--',
key, self.spec_version, 'extension-definition--', interoperability
)
elif allow_custom:
has_custom = True