Skip to content

Commit 7b74ec8

Browse files
committed
Squashed 'json/' changes from 9dc2c40..b6f129e
b6f129e patternProperties are not additionalProperties in draft3 either. 20fe647 Merge remote-tracking branch 'tolsen/patternProperties-are-not-additionalProperties' into develop 1fefae5 add test to draft4 that checks that patternProperties are not counted as additionalProperties 013a878 Merge pull request #44 from patefacio/develop 61705ec added entry for Dart 91febf4 Merge pull request #43 from zaggino/develop 0cf679f Added z-schema to the list f5f3d58 Merge pull request #42 from sigu-399/develop c029bbc Update README.md git-subtree-dir: json git-subtree-split: b6f129e
1 parent 0a93c5d commit 7b74ec8

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ This suite is being used by:
6666
* [direct-schema (javascript)](https://github.com/IreneKnapp/direct-schema)
6767
* [jsonschema (javascript)](https://github.com/tdegrunt/jsonschema)
6868
* [JaySchema (javascript)](https://github.com/natesilva/jayschema)
69+
* [z-schema (javascript)](https://github.com/zaggino/z-schema)
6970
* [jesse (Erlang)](https://github.com/klarna/jesse)
7071
* [json-schema (PHP)](https://github.com/justinrainbow/json-schema)
72+
* [gojsonschema (Go)](https://github.com/sigu-399/gojsonschema)
73+
* [json_schema (Dart)](https://github.com/patefacio/json_schema)
7174

7275
If you use it as well, please fork and send a pull request adding yourself to
7376
the list :).

tests/draft3/additionalProperties.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"additionalProperties being false does not allow other properties",
55
"schema": {
66
"properties": {"foo": {}, "bar": {}},
7+
"patternProperties": { "^v": {} },
78
"additionalProperties": false
89
},
910
"tests": [
@@ -21,6 +22,11 @@
2122
"description": "ignores non-objects",
2223
"data": [1, 2, 3],
2324
"valid": true
25+
},
26+
{
27+
"description": "patternProperties are not additional properties",
28+
"data": {"foo":1, "vroom": 2},
29+
"valid": true
2430
}
2531
]
2632
},

tests/draft4/additionalProperties.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"additionalProperties being false does not allow other properties",
55
"schema": {
66
"properties": {"foo": {}, "bar": {}},
7+
"patternProperties": { "^v": {} },
78
"additionalProperties": false
89
},
910
"tests": [
@@ -21,6 +22,11 @@
2122
"description": "ignores non-objects",
2223
"data": [1, 2, 3],
2324
"valid": true
25+
},
26+
{
27+
"description": "patternProperties are not additional properties",
28+
"data": {"foo":1, "vroom": 2},
29+
"valid": true
2430
}
2531
]
2632
},

0 commit comments

Comments
 (0)