You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: applications/__tests__/__snapshots__/e2e-lint.test.js.snap
+38-21Lines changed: 38 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -226,6 +226,7 @@ ERROR! Expected an array but got:
226
226
{foo: 'boolean', bar: 'number'}
227
227
ERROR! Cannot merge empty lists.
228
228
ERROR! Cannot merge 'array' types.
229
+
ERROR! Cannot merge empty lists.
229
230
[1] applications/resources/openapi-and.yaml:16:17 at #/paths/~1test/get/responses/200/content/application~1json/example
230
231
231
232
Example value must conform to the schema: must have required property 'bar'.
@@ -236,8 +237,8 @@ Example value must conform to the schema: must have required property 'bar'.
236
237
| ^^^^^^^^^^^
237
238
17 | wrong: not-expected!
238
239
| ^^^^^^^^^^^^^^^^^^^^
239
-
18 |
240
-
19 | application/problems+json:
240
+
18 | application/problems+json:
241
+
19 | x-type:
241
242
242
243
referenced from applications/resources/openapi-and.yaml:13:15 at #/paths/~1test/get/responses/200/content/application~1json
243
244
@@ -252,8 +253,8 @@ Example value must conform to the schema: must NOT have additional properties \`
252
253
16 | foo: wrong!
253
254
17 | wrong: not-expected!
254
255
| ^^^^^
255
-
18 |
256
-
19 | application/problems+json:
256
+
18 | application/problems+json:
257
+
19 | x-type:
257
258
258
259
referenced from applications/resources/openapi-and.yaml:13:15 at #/paths/~1test/get/responses/200/content/application~1json
259
260
@@ -264,37 +265,53 @@ Error was generated by the no-invalid-media-type-examples rule.
264
265
265
266
Example value must conform to the schema: \`foo\` property type must be boolean.
266
267
267
-
14 | $ref: '#/components/x-types/CorrectAnd'
268
-
15 | example:
269
-
16 | foo: wrong!
270
-
| ^^^^^^
271
-
17 | wrong: not-expected!
272
-
18 |
268
+
14 | $ref: '#/components/x-types/CorrectAnd'
269
+
15 | example:
270
+
16 | foo: wrong!
271
+
| ^^^^^^
272
+
17 | wrong: not-expected!
273
+
18 | application/problems+json:
273
274
274
275
referenced from applications/resources/openapi-and.yaml:13:15 at #/paths/~1test/get/responses/200/content/application~1json
275
276
276
277
Error was generated by the no-invalid-media-type-examples rule.
277
278
278
279
279
-
[4] applications/resources/openapi-and.yaml:23:21 at #/paths/~1test/get/responses/200/content/application~1problems+json/x-type/WrongAndFormat/$and
280
+
[4] applications/resources/openapi-and.yaml:22:21 at #/paths/~1test/get/responses/200/content/application~1problems+json/x-type/WrongAndFormat/$and
280
281
281
282
Expected type \`XTypeList\` (array) but got \`object\`
282
283
283
-
21 | WrongAndFormat:
284
-
22 | $and: # Expected an array!
285
-
23 | foo: boolean
284
+
20 | WrongAndFormat:
285
+
21 | $and: # Expected an array!
286
+
22 | foo: boolean
286
287
| ^^^^^^^^^^^^
287
-
24 | bar: number
288
+
23 | bar: number
288
289
| ^^^^^^^^^^^
289
-
25 | Empty: # Cannot merge empty lists!
290
-
26 | $and: []
290
+
24 | Empty: # Cannot merge empty lists!
291
+
25 | $and: []
291
292
292
293
Error was generated by the spec rule.
293
294
294
295
296
+
[5] applications/resources/openapi-and.yaml:35:21 at #/paths/~1test/get/responses/200/content/application~1problems+json/examples/Incorrect/value/unexpected
297
+
298
+
Example value must conform to the schema: must NOT have additional properties \`unexpected\`.
299
+
300
+
33 | Incorrect:
301
+
34 | value:
302
+
35 | unexpected: fails
303
+
| ^^^^^^^^^^
304
+
36 | application/undefined+json:
305
+
37 | x-type:
306
+
307
+
referenced from applications/resources/openapi-and.yaml:19:15 at #/paths/~1test/get/responses/200/content/application~1problems+json
308
+
309
+
Error was generated by the no-invalid-media-type-examples rule.
310
+
311
+
295
312
applications/resources/openapi-and.yaml: validated in <test>ms
296
313
297
-
❌ Validation failed with 4 errors.
314
+
❌ Validation failed with 5 errors.
298
315
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
299
316
300
317
"
@@ -679,14 +696,14 @@ You have 1 warning.
679
696
680
697
exports[`lint > openapi with writeOnly and readOnly fields 1`] = `
[1] applications/resources/openapi-with-writeonly-and-readonly.yaml:21:23 at #/paths/~1test/get/requestBody/content/application~1json/examples/Incorrect/value/id
699
+
[1] applications/resources/openapi-with-writeonly-and-readonly.yaml:21:19 at #/paths/~1test/get/requestBody/content/application~1json/examples/Incorrect/value/id
683
700
684
-
Example value must conform to the schema: \`id\` property must NOT be valid.
701
+
Example value must conform to the schema: must NOT have additional properties \`id\`.
0 commit comments