Skip to content

Commit 300f81e

Browse files
authored
Merge pull request #8 from pytilia/timsilvers/uuid_ignore_case
Permit uppercase characters in UUID
2 parents b553d3a + 9c4abe8 commit 300f81e

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)