|
2 | 2 | {
|
3 | 3 | "description":
|
4 | 4 | "additionalProperties being false does not allow other properties",
|
5 |
| - "specification":{ |
6 |
| - "jsonschema-core": { |
7 |
| - "section": "10.3.2.3.", |
8 |
| - "para": "1" |
9 |
| - } |
10 |
| - }, |
| 5 | + "specification": [ { "core":"10.3.2.3", "quote": "The value of \"additionalProperties\" MUST be a valid JSON Schema. Boolean \"false\" forbids everything." } ], |
11 | 6 | "schema": {
|
12 | 7 | "$schema": "https://json-schema.org/draft/2020-12/schema",
|
13 | 8 | "properties": {"foo": {}, "bar": {}},
|
|
49 | 44 | },
|
50 | 45 | {
|
51 | 46 | "description": "non-ASCII pattern with additionalProperties",
|
52 |
| - "specification":{ |
53 |
| - "rfc8259":{ |
54 |
| - "section": "4." |
55 |
| - } |
56 |
| - }, |
| 47 | + "specification": [ { "core":"10.3.2.3"} ], |
57 | 48 | "schema": {
|
58 | 49 | "$schema": "https://json-schema.org/draft/2020-12/schema",
|
59 | 50 | "patternProperties": {"^á": {}},
|
|
74 | 65 | },
|
75 | 66 | {
|
76 | 67 | "description": "additionalProperties with schema",
|
77 |
| - "specification":{ |
78 |
| - "jsonschema-core": { |
79 |
| - "section": "10.3.2.3.", |
80 |
| - "para": "1" |
81 |
| - } |
82 |
| - }, |
| 68 | + "specification": [ { "core":"10.3.2.3", "quote": "The value of \"additionalProperties\" MUST be a valid JSON Schema." } ], |
83 | 69 | "schema": {
|
84 | 70 | "$schema": "https://json-schema.org/draft/2020-12/schema",
|
85 | 71 | "properties": {"foo": {}, "bar": {}},
|
|
104 | 90 | ]
|
105 | 91 | },
|
106 | 92 | {
|
107 |
| - "description": |
108 |
| - "additionalProperties can exist by itself", |
| 93 | + "description": "additionalProperties can exist by itself", |
| 94 | + "specification": [ { "core":"10.3.2.3", "quote": "With no other applicator applying to object instances. This validates all the instance values irrespective of their property names" } ], |
109 | 95 | "schema": {
|
110 | 96 | "$schema": "https://json-schema.org/draft/2020-12/schema",
|
111 | 97 | "additionalProperties": {"type": "boolean"}
|
|
125 | 111 | },
|
126 | 112 | {
|
127 | 113 | "description": "additionalProperties are allowed by default",
|
128 |
| - "specification":{ |
129 |
| - "jsonschema-core": { |
130 |
| - "section": "10.3.2.3.", |
131 |
| - "para": "5" |
132 |
| - } |
133 |
| - }, |
| 114 | + "specification": [ { "core":"10.3.2.3", "quote": "Omitting this keyword has the same assertion behavior as an empty schema." } ], |
134 | 115 | "schema": {
|
135 | 116 | "$schema": "https://json-schema.org/draft/2020-12/schema",
|
136 | 117 | "properties": {"foo": {}, "bar": {}}
|
|
145 | 126 | },
|
146 | 127 | {
|
147 | 128 | "description": "additionalProperties does not look in applicators",
|
148 |
| - "specification":{ |
149 |
| - "jsonschema-core": { |
150 |
| - "section": "10.2.", |
151 |
| - "para": "2" |
152 |
| - } |
153 |
| - }, |
| 129 | + "specification":[ { "core": "10.2", "quote": "Subschemas of applicator keywords evaluate the instance completely independently such that the results of one such subschema MUST NOT impact the results of sibling subschemas." } ], |
154 | 130 | "schema": {
|
155 | 131 | "$schema": "https://json-schema.org/draft/2020-12/schema",
|
156 | 132 | "allOf": [
|
|
168 | 144 | },
|
169 | 145 | {
|
170 | 146 | "description": "additionalProperties with null valued instance properties",
|
171 |
| - "specification":{ |
172 |
| - "jsonschema-core": { |
173 |
| - "section": "10.3.2.3.", |
174 |
| - "para": "1" |
175 |
| - } |
176 |
| - }, |
| 147 | + "specification": [ { "core":"10.3.2.3" } ], |
177 | 148 | "schema": {
|
178 | 149 | "$schema": "https://json-schema.org/draft/2020-12/schema",
|
179 | 150 | "additionalProperties": {
|
|
0 commit comments