Skip to content

jmlue42/spectral-jsonapi-ruleset

Repository files navigation

spectral-jsonapi-ruleset

Node.js CI CodeQL

A Stoplight/Spectral linting ruleset for the JSON:API specification v1.0.

Installation

For ways to integrate this ruleset into your Spectral linting suite. See Sharing & Distributing Rulesets at https://meta.stoplight.io/

Organization

.spectral.yml - Spectral Ruleset

The ruleset extends - spectral:oas, spectral's built-in OAS linting rules.

The rules are generally organized by the JSON:API specification section the rule is mentioned in. Each rule notes the section url it realates to.

examples folder contains valid and invalid OAS3.1 examples

Contributing

In lieu of a formal style guide (I know... ironic 😁):

  • Take care to maintain the existing coding format.
  • Make needed adjustments to valid example
  • Verify all linting PASS: npm test

License

MIT License

Releases

No releases published

Packages

No packages published

Languages