Comments (2)
Where is your ruleset file?
I just figured out that the file path should be related to the ruleset file but not the current directory.
For example, if the project folder structure is like below, the file path needs to be ../folder1/*.yml
/my_project
/config
/spectral.yaml
/folder1
/api_x.yml
/api_y.yml
from spectral.
this is indeed similar to my folder structure, i think it's confusing that its relative to the spectral config to be honest and it makes more sense that it just does pattern matching on the files checked instead. E.g. regex like.
from spectral.
Related Issues (20)
- 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"
- oas3-operation-security-defined scopes validation not using resolved securitySchemes
- The oas3-valid-media-example linter complains about using nullable type when using allOf. I am using the below example schema: HOT 1
- Unable to lint open api if it is wrapped by object
- Node.js 21+: DeprecationWarning: The `punycode` module is deprecated
- asyncapi asyncApi2SchemaValidation does not allow string examples for other schema types HOT 1
- fix: Generated Assets suffix for CPU Architecture x64 is not correct HOT 2
- ReadOnly in synch with required raising an error on POST where it should not HOT 1
- fails to parse yaml values with double quote `"` inside HOT 2
- Schema of type string must specify maxLength, enum, or const HOT 3
- tokenUrl doesn't permit for relative references in OAS 3.1 HOT 1
- Publish arm64 Docker containers to https://hub.docker.com/r/stoplight/spectral
- Bug: Validation Error with @stoplight/spectral-rulesets 1.19.0 HOT 3
- CVE-2024-4068: High vulnerability found in @stoplight/spectral-cli version 6.11.1 HOT 1
- Lots of $ref to other files leads to random errors due to unprocessed $ref targets HOT 1
- Invalid JSON + invalid OAS is not recognized as such HOT 3
- OAS 3.1 Security Schemes Relax "Scope" definition requirements - Updated Function/Rule ?
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.