Comments (4)
just a few thoughts
- the trailing comma problem isn't really the domain of spectral - spectral cares more about the sematics of the content than the syntax. another tool might help!
- im thinking like a "format/detect/core property" configuration for rule sets that the core engine would consult to ensure that one of those must exist: json schema, oas, asyncapi, etc. it might have to be behind a new flag but if the "detector" doesn't find one, then its an error
- since the ruleset didn't see this as an oas file, then it didnt run, hence missing paths wasn't checked
from spectral.
@daniel-white Thanks for your response!
- Can you please recommend me something appropriate for the syntax validations though?
- Should I create a separate issue for it? (
"openap"
key issue) - But shouldn't the tool see all the files I am trying to validate as OAS files explicitly, and throw errors accordingly? The file could be incorrect due to human error, and internally Spectral "decides" that it's not OAS and so won't do any validation... That's kinda weird (if I understood this correctly).
from spectral.
Related Issues (20)
- 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" HOT 2
- 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 4
- 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
- OAS 3.1 Security Schemes Relax "Scope" definition requirements - Updated Function/Rule ? HOT 1
- Rule array-items does not support prefixItems keyword HOT 1
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.