Skip to content

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

License

Notifications You must be signed in to change notification settings

ezenity/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

Rules and Rulesets are organized by section of the JSON:API specification:

  • Primary Ruleset
    • ./rules/jsonapi-ruleset.yaml
  • Main Sections
    • ./rules/jsonapi-{name-of-section}-ruleset.yaml
  • Sub Sections
    • ./rules/jsonapi-{name-of-section}.js

Each file extends rules/rulesets contained in its corresponding subsections.

Contributing

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

  • Take care to maintain the existing coding style, including tests.
  • Add tests for all new/edited rules including JSONPath testing.
  • Verify all linting and tests PASS: npm test

License

MIT License

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%