|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`E2E lint default-message-override 1`] = ` |
| 4 | +
|
| 5 | +validating openapi.yaml... |
| 6 | +[1] openapi.yaml:7:5 at #/paths/~1test/get |
| 7 | +
|
| 8 | +Original problem: operationId is required |
| 9 | +
|
| 10 | +5 | paths: |
| 11 | +6 | /test: |
| 12 | +7 | get: |
| 13 | + | ^^^ |
| 14 | +8 | responses: |
| 15 | +9 | 200: |
| 16 | +
|
| 17 | +Error was generated by the rule/operationId rule. |
| 18 | +
|
| 19 | +
|
| 20 | +[2] openapi.yaml:9:9 at #/paths/~1test/get/responses/200 |
| 21 | +
|
| 22 | +ROOT LEVEL WITH ORIGINAL MSG: The field \`description\` must be present on this level. |
| 23 | +
|
| 24 | + 7 | get: |
| 25 | + 8 | responses: |
| 26 | + 9 | 200: |
| 27 | + | ^^^ |
| 28 | +10 | content: |
| 29 | +11 | application/json: |
| 30 | +
|
| 31 | +Error was generated by the struct rule. |
| 32 | +
|
| 33 | +
|
| 34 | +[3] openapi.yaml:2:1 at #/info/contact |
| 35 | +
|
| 36 | +API LEVEL MESSAGE |
| 37 | +
|
| 38 | +1 | openapi: 3.1.0 |
| 39 | +2 | info: |
| 40 | + | ^^^^ |
| 41 | +3 | version: 1.0.0 |
| 42 | +4 | title: Custom messages test |
| 43 | +
|
| 44 | +Warning was generated by the info-contact rule. |
| 45 | +
|
| 46 | +
|
| 47 | +[4] openapi.yaml:7:5 at #/paths/~1test/get/operationId |
| 48 | +
|
| 49 | +API LEVEL WITH ORIGINAL MSG: Operation object should contain \`operationId\` field. |
| 50 | +
|
| 51 | +5 | paths: |
| 52 | +6 | /test: |
| 53 | +7 | get: |
| 54 | + | ^^^ |
| 55 | +8 | responses: |
| 56 | +9 | 200: |
| 57 | +
|
| 58 | +Warning was generated by the operation-operationId rule. |
| 59 | +
|
| 60 | +
|
| 61 | +openapi.yaml: validated in <test>ms |
| 62 | +
|
| 63 | +validating split/openapi.yaml... |
| 64 | +[1] split/info.yaml:1:1 at #/contact |
| 65 | +
|
| 66 | +ROOT LEVEL MESSAGE |
| 67 | +
|
| 68 | +1 | version: 1.0.0 |
| 69 | + | ^^^^^^^^^^^^^^ |
| 70 | +2 | title: Custom messages test |
| 71 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 72 | +3 | |
| 73 | +
|
| 74 | +Error was generated by the info-contact rule. |
| 75 | +
|
| 76 | +
|
| 77 | +[2] split/paths/test.yaml:1:1 at #/get |
| 78 | +
|
| 79 | +Original problem: operationId is required |
| 80 | +
|
| 81 | +1 | get: |
| 82 | + | ^^^ |
| 83 | +2 | responses: |
| 84 | +3 | '200': |
| 85 | +
|
| 86 | +Error was generated by the rule/operationId rule. |
| 87 | +
|
| 88 | +
|
| 89 | +[3] split/paths/test.yaml:3:5 at #/get/responses/200 |
| 90 | +
|
| 91 | +ROOT LEVEL WITH ORIGINAL MSG: The field \`description\` must be present on this level. |
| 92 | +
|
| 93 | +1 | get: |
| 94 | +2 | responses: |
| 95 | +3 | '200': |
| 96 | + | ^^^^^ |
| 97 | +4 | content: |
| 98 | +5 | application/json: |
| 99 | +
|
| 100 | +Error was generated by the struct rule. |
| 101 | +
|
| 102 | +
|
| 103 | +split/openapi.yaml: validated in <test>ms |
| 104 | +
|
| 105 | +❌ Validation failed with 5 errors and 2 warnings. |
| 106 | +run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. |
| 107 | +
|
| 108 | +
|
| 109 | +`; |
0 commit comments