-
Notifications
You must be signed in to change notification settings - Fork 225
fix(core): fix bug loading of .redocly.lint-ignore.yaml in browser environments
#2489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
53e4d61
fix: update lint-ignore logic
kanoru3101 323e239
fix: update tests
kanoru3101 f0491ec
fix: add logs
kanoru3101 04aff2e
fix: refactoring
kanoru3101 80c55f0
fix: refactoring
kanoru3101 b12cd36
fix: revert changes
kanoru3101 25d06f0
fix: update tests
kanoru3101 dd80539
fix: add logs
kanoru3101 fb47186
fix(core): remove logs
kanoru3101 0f336e4
fix(core): remove comments
kanoru3101 a12049c
fix(core): refactoring
kanoru3101 2d024cc
Merge remote-tracking branch 'origin/main' into fix/ignore-file-for-b…
kanoru3101 4a53e67
Merge remote-tracking branch 'origin/main' into fix/ignore-file-for-b…
kanoru3101 4465598
fix(core): resolve comments
kanoru3101 83bf54c
Merge remote-tracking branch 'origin/main' into fix/ignore-file-for-b…
kanoru3101 8cc6944
Update .changeset/sour-wings-follow.md
kanoru3101 12cfd27
fix(core): refactoring
kanoru3101 d85e099
fix(core): test in reunite changes
kanoru3101 cf41d7b
fix(core): update
kanoru3101 2c56788
fix(core): revert changes
kanoru3101 483b4d1
fix(core): check again
kanoru3101 aa636ba
fix(core): update snapshot for smoke test
kanoru3101 1b0ddb8
fix(core): update load again
kanoru3101 a2514c0
fix(core): debug load
kanoru3101 4260ee7
fix(core): add logs
kanoru3101 d3abf6f
fix(core): remove logs
kanoru3101 0f7eb30
Merge remote-tracking branch 'origin/main' into fix/ignore-file-for-b…
kanoru3101 42a85f6
fix(core): resolve comment
kanoru3101 236f083
fix(core): move the part of logic to а config adopter
kanoru3101 d64b3ac
fix(core): rebuild redoc.html
kanoru3101 4a988ea
fix(core): fix valuability
kanoru3101 a67636b
fix(core): fix bug with path without redocly.yaml
kanoru3101 76e98ee
fix(core): update export
kanoru3101 a4aeeef
fix(core): add logs
kanoru3101 0908c72
fix(core): remove logs
kanoru3101 aad5b73
fix(core): remove isAbsoluteUrlOrFileUrl and update isAbsoluteUrl
kanoru3101 5a026f5
fix(core): resolve comments and add log for ConfigDir
kanoru3101 84c82cf
fix(core): update resolvedFileName
kanoru3101 0ee91d4
fix(core): remove console.log and resolvedIgnoreDir
kanoru3101 876d5ec
fix(core): add types
kanoru3101 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@redocly/openapi-core": patch | ||
| --- | ||
|
|
||
| Fixed an issue where `.redocly.lint-ignore.yaml` was not loaded in browser environments. |
This file contains hidden or 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 hidden or 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 hidden or 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
3 changes: 3 additions & 0 deletions
3
packages/core/src/config/__tests__/fixtures/ignore-file/.redocly.lint-ignore.yaml
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| api.yaml: | ||
| operation-operationId: | ||
| - '#/paths/~1pets/get/operationId' |
12 changes: 12 additions & 0 deletions
12
packages/core/src/config/__tests__/fixtures/ignore-file/api.yaml
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| openapi: 3.0.0 | ||
| info: | ||
| title: Test API | ||
| version: 1.0.0 | ||
| paths: | ||
| /pets: | ||
| get: | ||
| operationId: '' | ||
| summary: Get pets | ||
| responses: | ||
| '200': | ||
| description: OK |
3 changes: 3 additions & 0 deletions
3
packages/core/src/config/__tests__/fixtures/ignore-file/redocly.yaml
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| rules: | ||
| operation-operationId: error | ||
| operation-summary: error | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.