Skip to content

Commit e34c3fb

Browse files
committed
Tests for Permit uppercase characters in UUID
1 parent 300f81e commit e34c3fb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/integration/test_validators.py

+12
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,15 @@ def test_string_format_datetime_isodate(self, value):
7272
result = validator.validate(value)
7373

7474
assert result is None
75+
76+
@pytest.mark.parametrize('value', [
77+
'f50ec0b7-f960-400d-91f0-c42a6d44e3d0',
78+
'F50EC0B7-F960-400D-91F0-C42A6D44E3D0',
79+
])
80+
def test_string_uuid(self, value):
81+
schema = {"type": 'string', "format": 'uuid'}
82+
validator = OAS30Validator(schema, format_checker=oas30_format_checker)
83+
84+
result = validator.validate(value)
85+
86+
assert result is None

0 commit comments

Comments
 (0)