Skip to content

Commit 9c4abe8

Browse files
committed
Permit uppercase characters in UUID per RFC 4122
1 parent d687f55 commit 9c4abe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi_schema_validator/_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def is_uuid(instance):
9090
if isinstance(instance, binary_type):
9191
instance = instance.decode()
9292

93-
return text_type(UUID(instance)) == instance
93+
return text_type(UUID(instance)).lower() == instance.lower()
9494

9595

9696
def is_password(instance):

0 commit comments

Comments
 (0)