Skip to content

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

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%