We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dc2889 commit 52fdebeCopy full SHA for 52fdebe
jsonschema/tests/test_validators.py
@@ -742,6 +742,14 @@ def test_unevaluated_properties_on_invalid_type(self):
742
message = self.message_for(instance="foo", schema=schema)
743
self.assertEqual(message, "'foo' is not of type 'object'")
744
745
+ def test_unevaluated_properties_with_additional_properties(self):
746
+ schema = {
747
+ "additionalProperties": {"type": "string"},
748
+ "unevaluatedProperties": False,
749
+ }
750
+ validator = validators._LATEST_VERSION(schema)
751
+ validator.validate(instance={"foo": "foo"})
752
+
753
def test_single_item(self):
754
schema = {"prefixItems": [{}], "items": False}
755
message = self.message_for(
0 commit comments