Skip to content

Commit befb935

Browse files
manycodingJulian
authored andcommitted
Add propertyNames to Draft6 patternProperties, do not skip patternProperties test
1 parent ca4bff8 commit befb935

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

jsonschema/schemas/draft6.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
"patternProperties": {
116116
"type": "object",
117117
"additionalProperties": { "$ref": "#" },
118+
"propertyNames": { "format": "regex" },
118119
"default": {}
119120
},
120121
"dependencies": {

jsonschema/tests/test_validators.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,8 +892,6 @@ def test_invalid_pattern(self):
892892
with self.assertRaises(SchemaError):
893893
self.Validator.check_schema({"pattern": "\q"})
894894

895-
@unittest.skip("This test fails but it shouldn't, see"
896-
"github.com/Julian/jsonschema/pull/425#issuecomment-425667814")
897895
def test_invalid_patternProperty(self):
898896
with self.assertRaises(SchemaError):
899897
self.Validator.check_schema(

0 commit comments

Comments
 (0)