Skip to content

Commit 9cdc1b4

Browse files
authored
Merge pull request #165 from python-openapi/dependabot/pip/jsonschema-4.21.1
Bump jsonschema from 4.19.1 to 4.21.1
2 parents 18668a4 + dfb83c2 commit 9cdc1b4

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integration/test_validators.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,5 +863,10 @@ def test_array_prefixitems_invalid(self, validator_class, value):
863863
with pytest.raises(ValidationError) as excinfo:
864864
validator.validate(value)
865865

866-
error = "Expected at most 4 items, but found 5"
867-
assert error in str(excinfo.value)
866+
errors = [
867+
# jsonschema < 4.20.0
868+
"Expected at most 4 items, but found 5",
869+
# jsonschema >= 4.20.0
870+
"Expected at most 4 items but found 1 extra",
871+
]
872+
assert any(error in str(excinfo.value) for error in errors)

0 commit comments

Comments
 (0)