Skip to content

Commit 50a2028

Browse files
committed
adding specification enhancement for additionalProperties
1 parent 604f5f9 commit 50a2028

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/draft2020-12/additionalProperties.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
{
33
"description":
44
"additionalProperties being false does not allow other properties",
5+
"specification":{
6+
"jsonschema":"https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-01#section-10.3.2.3-1"
7+
},
58
"schema": {
69
"$schema": "https://json-schema.org/draft/2020-12/schema",
710
"properties": {"foo": {}, "bar": {}},
@@ -63,6 +66,9 @@
6366
},
6467
{
6568
"description": "additionalProperties with schema",
69+
"specification":{
70+
"jsonschema":"https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-01#section-10.3.2.3-1"
71+
},
6672
"schema": {
6773
"$schema": "https://json-schema.org/draft/2020-12/schema",
6874
"properties": {"foo": {}, "bar": {}},
@@ -108,6 +114,9 @@
108114
},
109115
{
110116
"description": "additionalProperties are allowed by default",
117+
"specification":{
118+
"jsonschema":"https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-01#section-10.3.2.3-5"
119+
},
111120
"schema": {
112121
"$schema": "https://json-schema.org/draft/2020-12/schema",
113122
"properties": {"foo": {}, "bar": {}}
@@ -122,6 +131,9 @@
122131
},
123132
{
124133
"description": "additionalProperties does not look in applicators",
134+
"specification":{
135+
"jsonschema":"https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-01#section-10.2-2"
136+
},
125137
"schema": {
126138
"$schema": "https://json-schema.org/draft/2020-12/schema",
127139
"allOf": [
@@ -139,6 +151,9 @@
139151
},
140152
{
141153
"description": "additionalProperties with null valued instance properties",
154+
"specification":{
155+
"jsonschema": "https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-01#section-10.3.2.3-1"
156+
},
142157
"schema": {
143158
"$schema": "https://json-schema.org/draft/2020-12/schema",
144159
"additionalProperties": {

0 commit comments

Comments
 (0)