Spectral

description

  • OpenAPI Linter
  • but is not able to analyze path structure, etc.

installation

$ sudo npm install -g @stoplight/spectral-cli

usage

  1. Download a ruleset
  2. Run spectral through spectral lint api.json --ruleset zalando/.spectral.json

alternatives

  • Zally: directly from Zalando but needs large server deployment including docker-compose

references