forked from readmeio/rdme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: migrate validate to `openapi:validate` * fix: don't document `validate` command * test: fix broken snapshot * fix: add deprecation notice
- Loading branch information
1 parent
c8d0b02
commit 7bd081a
Showing
15 changed files
with
167 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`rdme validate GHA onboarding E2E tests should create GHA workflow if user passes in spec via opt (github flag enabled) 1`] = ` | ||
exports[`rdme openapi:validate GHA onboarding E2E tests should create GHA workflow if user passes in spec via opt (github flag enabled) 1`] = ` | ||
" | ||
Your GitHub Actions workflow file has been created! ✨ | ||
|
@@ -10,7 +10,7 @@ Almost done! Push your newly created file (.github/workflows/validate-test-opt-s | |
" | ||
`; | ||
|
||
exports[`rdme validate GHA onboarding E2E tests should create GHA workflow if user passes in spec via opt (github flag enabled) 2`] = ` | ||
exports[`rdme openapi:validate GHA onboarding E2E tests should create GHA workflow if user passes in spec via opt (github flag enabled) 2`] = ` | ||
"# This GitHub Actions workflow was auto-generated by the \`rdme\` cli on 2022-01-01T00:00:00.000Z | ||
# You can view our full documentation here: https://docs.readme.com/docs/rdme | ||
name: ReadMe GitHub Action 🦉 | ||
|
@@ -24,20 +24,20 @@ on: | |
- validate-test-opt-spec-github-branch | ||
jobs: | ||
rdme-validate: | ||
rdme-openapi-validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo 📚 | ||
uses: actions/checkout@v3 | ||
- name: Run \`validate\` command 🚀 | ||
- name: Run \`openapi:validate\` command 🚀 | ||
uses: readmeio/[email protected] | ||
with: | ||
rdme: validate __tests__/__fixtures__/petstore-simple-weird-version.json | ||
rdme: openapi:validate __tests__/__fixtures__/petstore-simple-weird-version.json | ||
" | ||
`; | ||
|
||
exports[`rdme validate GHA onboarding E2E tests should create GHA workflow if user passes in spec via opt (including workingDirectory) 1`] = ` | ||
exports[`rdme openapi:validate GHA onboarding E2E tests should create GHA workflow if user passes in spec via opt (including workingDirectory) 1`] = ` | ||
" | ||
Your GitHub Actions workflow file has been created! ✨ | ||
|
@@ -47,7 +47,7 @@ Almost done! Push your newly created file (.github/workflows/validate-test-opt-s | |
" | ||
`; | ||
|
||
exports[`rdme validate GHA onboarding E2E tests should create GHA workflow if user passes in spec via opt (including workingDirectory) 2`] = ` | ||
exports[`rdme openapi:validate GHA onboarding E2E tests should create GHA workflow if user passes in spec via opt (including workingDirectory) 2`] = ` | ||
"# This GitHub Actions workflow was auto-generated by the \`rdme\` cli on 2022-01-01T00:00:00.000Z | ||
# You can view our full documentation here: https://docs.readme.com/docs/rdme | ||
name: ReadMe GitHub Action 🦉 | ||
|
@@ -61,20 +61,20 @@ on: | |
- validate-test-opt-spec-github-branch | ||
jobs: | ||
rdme-validate: | ||
rdme-openapi-validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo 📚 | ||
uses: actions/checkout@v3 | ||
- name: Run \`validate\` command 🚀 | ||
- name: Run \`openapi:validate\` command 🚀 | ||
uses: readmeio/[email protected] | ||
with: | ||
rdme: validate petstore.json --workingDirectory=./__tests__/__fixtures__/relative-ref-oas | ||
rdme: openapi:validate petstore.json --workingDirectory=./__tests__/__fixtures__/relative-ref-oas | ||
" | ||
`; | ||
|
||
exports[`rdme validate GHA onboarding E2E tests should create GHA workflow if user passes in spec via opt 1`] = ` | ||
exports[`rdme openapi:validate GHA onboarding E2E tests should create GHA workflow if user passes in spec via opt 1`] = ` | ||
" | ||
Your GitHub Actions workflow file has been created! ✨ | ||
|
@@ -84,7 +84,7 @@ Almost done! Push your newly created file (.github/workflows/validate-test-opt-s | |
" | ||
`; | ||
|
||
exports[`rdme validate GHA onboarding E2E tests should create GHA workflow if user passes in spec via opt 2`] = ` | ||
exports[`rdme openapi:validate GHA onboarding E2E tests should create GHA workflow if user passes in spec via opt 2`] = ` | ||
"# This GitHub Actions workflow was auto-generated by the \`rdme\` cli on 2022-01-01T00:00:00.000Z | ||
# You can view our full documentation here: https://docs.readme.com/docs/rdme | ||
name: ReadMe GitHub Action 🦉 | ||
|
@@ -98,20 +98,20 @@ on: | |
- validate-test-opt-spec-branch | ||
jobs: | ||
rdme-validate: | ||
rdme-openapi-validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo 📚 | ||
uses: actions/checkout@v3 | ||
- name: Run \`validate\` command 🚀 | ||
- name: Run \`openapi:validate\` command 🚀 | ||
uses: readmeio/[email protected] | ||
with: | ||
rdme: validate __tests__/__fixtures__/petstore-simple-weird-version.json | ||
rdme: openapi:validate __tests__/__fixtures__/petstore-simple-weird-version.json | ||
" | ||
`; | ||
|
||
exports[`rdme validate GHA onboarding E2E tests should create GHA workflow if user passes in spec via prompts 1`] = ` | ||
exports[`rdme openapi:validate GHA onboarding E2E tests should create GHA workflow if user passes in spec via prompts 1`] = ` | ||
" | ||
Your GitHub Actions workflow file has been created! ✨ | ||
|
@@ -121,7 +121,7 @@ Almost done! Push your newly created file (.github/workflows/validate-test-file. | |
" | ||
`; | ||
|
||
exports[`rdme validate GHA onboarding E2E tests should create GHA workflow if user passes in spec via prompts 2`] = ` | ||
exports[`rdme openapi:validate GHA onboarding E2E tests should create GHA workflow if user passes in spec via prompts 2`] = ` | ||
"# This GitHub Actions workflow was auto-generated by the \`rdme\` cli on 2022-01-01T00:00:00.000Z | ||
# You can view our full documentation here: https://docs.readme.com/docs/rdme | ||
name: ReadMe GitHub Action 🦉 | ||
|
@@ -135,20 +135,20 @@ on: | |
- validate-test-branch | ||
jobs: | ||
rdme-validate: | ||
rdme-openapi-validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo 📚 | ||
uses: actions/checkout@v3 | ||
- name: Run \`validate\` command 🚀 | ||
- name: Run \`openapi:validate\` command 🚀 | ||
uses: readmeio/[email protected] | ||
with: | ||
rdme: validate __tests__/__fixtures__/petstore-simple-weird-version.json | ||
rdme: openapi:validate __tests__/__fixtures__/petstore-simple-weird-version.json | ||
" | ||
`; | ||
|
||
exports[`rdme validate error handling should throw an error if an invalid OpenAPI 3.1 definition is supplied 1`] = ` | ||
exports[`rdme openapi:validate error handling should throw an error if an invalid OpenAPI 3.1 definition is supplied 1`] = ` | ||
[SyntaxError: OpenAPI schema validation failed. | ||
REQUIRED must have required property 'name' | ||
|
@@ -162,7 +162,7 @@ REQUIRED must have required property 'name' | |
29 | }] | ||
`; | ||
exports[`rdme validate error handling should throw an error if an invalid Swagger definition is supplied 1`] = ` | ||
exports[`rdme openapi:validate error handling should throw an error if an invalid Swagger definition is supplied 1`] = ` | ||
[SyntaxError: Swagger schema validation failed. | ||
ADDITIONAL PROPERTY must NOT have additional properties | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.