|
2 | 2 | {
|
3 | 3 | "description": "allOf",
|
4 | 4 | "schema": {
|
| 5 | + "$schema": "https://json-schema.org/draft/next/schema", |
5 | 6 | "allOf": [
|
6 | 7 | {
|
7 | 8 | "properties": {
|
|
43 | 44 | {
|
44 | 45 | "description": "allOf with base schema",
|
45 | 46 | "schema": {
|
| 47 | + "$schema": "https://json-schema.org/draft/next/schema", |
46 | 48 | "properties": {"bar": {"type": "integer"}},
|
47 | 49 | "required": ["bar"],
|
48 | 50 | "allOf" : [
|
|
91 | 93 | {
|
92 | 94 | "description": "allOf simple types",
|
93 | 95 | "schema": {
|
| 96 | + "$schema": "https://json-schema.org/draft/next/schema", |
94 | 97 | "allOf": [
|
95 | 98 | {"maximum": 30},
|
96 | 99 | {"minimum": 20}
|
|
111 | 114 | },
|
112 | 115 | {
|
113 | 116 | "description": "allOf with boolean schemas, all true",
|
114 |
| - "schema": {"allOf": [true, true]}, |
| 117 | + "schema": { |
| 118 | + "$schema": "https://json-schema.org/draft/next/schema", |
| 119 | + "allOf": [true, true] |
| 120 | + }, |
115 | 121 | "tests": [
|
116 | 122 | {
|
117 | 123 | "description": "any value is valid",
|
|
122 | 128 | },
|
123 | 129 | {
|
124 | 130 | "description": "allOf with boolean schemas, some false",
|
125 |
| - "schema": {"allOf": [true, false]}, |
| 131 | + "schema": { |
| 132 | + "$schema": "https://json-schema.org/draft/next/schema", |
| 133 | + "allOf": [true, false] |
| 134 | + }, |
126 | 135 | "tests": [
|
127 | 136 | {
|
128 | 137 | "description": "any value is invalid",
|
|
133 | 142 | },
|
134 | 143 | {
|
135 | 144 | "description": "allOf with boolean schemas, all false",
|
136 |
| - "schema": {"allOf": [false, false]}, |
| 145 | + "schema": { |
| 146 | + "$schema": "https://json-schema.org/draft/next/schema", |
| 147 | + "allOf": [false, false] |
| 148 | + }, |
137 | 149 | "tests": [
|
138 | 150 | {
|
139 | 151 | "description": "any value is invalid",
|
|
145 | 157 | {
|
146 | 158 | "description": "allOf with one empty schema",
|
147 | 159 | "schema": {
|
| 160 | + "$schema": "https://json-schema.org/draft/next/schema", |
148 | 161 | "allOf": [
|
149 | 162 | {}
|
150 | 163 | ]
|
|
160 | 173 | {
|
161 | 174 | "description": "allOf with two empty schemas",
|
162 | 175 | "schema": {
|
| 176 | + "$schema": "https://json-schema.org/draft/next/schema", |
163 | 177 | "allOf": [
|
164 | 178 | {},
|
165 | 179 | {}
|
|
176 | 190 | {
|
177 | 191 | "description": "allOf with the first empty schema",
|
178 | 192 | "schema": {
|
| 193 | + "$schema": "https://json-schema.org/draft/next/schema", |
179 | 194 | "allOf": [
|
180 | 195 | {},
|
181 | 196 | { "type": "number" }
|
|
197 | 212 | {
|
198 | 213 | "description": "allOf with the last empty schema",
|
199 | 214 | "schema": {
|
| 215 | + "$schema": "https://json-schema.org/draft/next/schema", |
200 | 216 | "allOf": [
|
201 | 217 | { "type": "number" },
|
202 | 218 | {}
|
|
218 | 234 | {
|
219 | 235 | "description": "nested allOf, to check validation semantics",
|
220 | 236 | "schema": {
|
| 237 | + "$schema": "https://json-schema.org/draft/next/schema", |
221 | 238 | "allOf": [
|
222 | 239 | {
|
223 | 240 | "allOf": [
|
|
244 | 261 | {
|
245 | 262 | "description": "allOf combined with anyOf, oneOf",
|
246 | 263 | "schema": {
|
| 264 | + "$schema": "https://json-schema.org/draft/next/schema", |
247 | 265 | "allOf": [ { "multipleOf": 2 } ],
|
248 | 266 | "anyOf": [ { "multipleOf": 3 } ],
|
249 | 267 | "oneOf": [ { "multipleOf": 5 } ]
|
|
0 commit comments