Comments (4)
Hey!
You should use Spectral 6.x. 5.9.2 does not support overrides.
With 6.x it works just fine.
If you chose npm/yarn installation, make sure to remove @stoplight/spectral
and install @stoplight/spectral-cli
instead.
from spectral.
Hi,
@P0lip any suggestion what I can use to ignore those errors in version 5 of spectral?
I cannot easily upgrade to v6... looks like I have some dependency clashes.
from spectral.
Spectral v5 only lets you disable the rule entirely via exceptions. You'll need to upgrade to v6 if you want to leverage overrides.
from spectral.
Thanks for all the answers.
from spectral.
Related Issues (20)
- False Positive for OIDC scopes in `oas3-operation-security-defined` HOT 1
- @stoplight/path: Cannot parse <openapi.yaml> because it is not a string
- Spectral oas3-unused-component warning
- new rule for ambiguous path objects?
- Have a status to know when the lint has found any warning
- [Feature] Pass pattern some regex modifiers as a function option HOT 3
- oas3-valid-media-example not catching some bad example values
- launch Spectral without a defined ruleset , should use default ruleset
- Include documentation URLs for built-in rulesets
- Rule overrides with file paths don't work HOT 2
- oas3-valid-media-example is reported for primitives if type is object
- Path property of error remains empty even if custom function provides some value
- Wrongly declared array not caught as error HOT 3
- Incorrect example validation on OpenAPI and examples vlaidation on AsyncAPI when using `allOf`.
- Ready to use Aliases to write rulesets
- Provide a solution for for fixing self-signed certificate errors in VSCode HOT 1
- Misbehaviour with Regex and numbers HOT 2
- operation-operationId-valid-in-url message needs small updates
- Error when generating SARIF report HOT 1
- False "oas3-valid-media-example" error reported: "property must match exactly one schema in oneOf"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spectral.