fix: bundle lint --format doesn't work properly (#406)

This commit is contained in:
Andriy Leliv
2021-10-20 10:27:49 +03:00
committed by GitHub
parent d0d0aa1cff
commit 195fa94187
10 changed files with 244 additions and 17 deletions

View File

@@ -0,0 +1,24 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`E2E bundle lint format bundle lint: should be formatted by format: codeframe 1`] = `
[1] openapi.yaml:20:11 at #/paths/~1my_post/post/requestBody/content/application~1json
Expected type \`MediaType\` (object) but got \`null\`
18 | requestBody:
19 | content:
20 | application/json:
| ^^^^^^^^^^^^^^^^^
21 |
Error was generated by the spec rule.
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
bundling ./openapi.yaml...
📦 Created a bundle for ./openapi.yaml at /tmp/null.yaml <test>ms.
`;