Ignore errors settings
See original GitHub issueI’m using OAS3.0.3 and heavily using JSON Schema defined external references. Each of these files indicates the $schema
keyword and this is not supported in 3.0.x. My linting report is showing me over 90 thousand errors for $schema
is not expected here. How can I add a specific output message to the ignore list rather than the entire “spec” error. I don’t want to ignore all spec errors, only this particular one.
2:3 error spec Property `$schema` is not expected here.
Validation failed with 91051 errors and 705 warnings.
This is my ignore file but it’s not picking up the ignore request. My intention is to lint an entire folder with the *
and I want to ignore all occurrences in any folder
# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
# See https://redoc.ly/docs/cli/ for more information.
api-library-releases/*:
spec:
- '#/$schema'
Issue Analytics
- State:
- Created a year ago
- Comments:14 (13 by maintainers)
Top Results From Across the Web
Manage errors in APM: Collect, ignore, or mark as expected
Go to the Server-side configuration menu for the application that has errors that you want to ignore. Under Error collection, look for Ignore...
Read more >How to Ignore All Errors in Excel & Google Sheets
2. In the Excel Options window, (1) go to the Formulas tab, (2) uncheck Enable background error checking, and (3) click OK ...
Read more >Ignoring Errors - PHPStan
To ignore errors by a regular expression only in a specific file, add an entry with message or messages and path or paths...
Read more >Using ignore errors for optional steps and actions - Uptrends
Think of the ignore errors option as a way to insert a conditional statement. You can either set ignore errors at the step...
Read more >How to Ignore All Errors in Microsoft Excel - groovyPost
Open your Excel spreadsheet. · Select the cell (or cells) containing the error messages. · Click the warning icon that appears next to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve given this a go since I had a similar scenario. Here is the code that I’ve used.
which I then added to my
.redocly.yaml
Bonus content. I’ve also added an example below to depict how one would make $id and $schema required in your
Operation > 200 only Responses > Schema
Hope that helps someone 😃
@bandantonio it would be great to turn this into a guide.