Replies: 1 comment
-
I have this same problem... I spent some time setting up spectral only to learn that by default it won't do anything. I was kind of expecting some basic rules like "description must be set in specific cases", "object properties must be camelCased" or some complex checks to rule out impossible situations like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Validating an OpenAPI specification file is as simple as putting
extends: "spectral:oas"
into a.yaml
file, and passing this in as a parameter when callingspectral lint
.I have a use case where I don't have an OpenAPI specification inside a file, but just a plain JSON schema which I'd check for consistency? Is that possible? Given the fact that the
spectral:oas
ruleset relies on JSON Schema, and thedraft-2020-12
JSON schema definition is even included in the source tree, this should be rather straight-forward, right? Is it exposed as functionality somewhere? I tried usingspectral:jsonschema
andspectral:json-schema
, but none of these worked.Beta Was this translation helpful? Give feedback.
All reactions