fix: Applying the same parameter as for IDs in created_by_ref UUIDs
parent
86536b43b1
commit
3ae38fe687
|
@ -345,6 +345,10 @@ class ReferenceProperty(Property):
|
||||||
if self.type:
|
if self.type:
|
||||||
if not value.startswith(self.type):
|
if not value.startswith(self.type):
|
||||||
raise ValueError("must start with '{0}'.".format(self.type))
|
raise ValueError("must start with '{0}'.".format(self.type))
|
||||||
|
if hasattr(self, 'interoperability') and self.interoperability:
|
||||||
|
if not ID_REGEX_interoperability.match(value):
|
||||||
|
raise ValueError(ERROR_INVALID_ID)
|
||||||
|
else:
|
||||||
if not ID_REGEX.match(value):
|
if not ID_REGEX.match(value):
|
||||||
raise ValueError(ERROR_INVALID_ID)
|
raise ValueError(ERROR_INVALID_ID)
|
||||||
return value
|
return value
|
||||||
|
|
Loading…
Reference in New Issue