API Style Validation Tool
Andy Mayer
Spectral
We have successfully applied Spectral along with custom rules to "lint" Swagger files based on the ONAP Swagger style guide!
With Spectral, ONAP can provide our own ruleset file extending the rules used by Spectral.
The Spectral CLI will look for a ruleset file called .spectral.yml
or .spectral.json
in the current working directory.
We could also use a different file by using the CLI option --ruleset
{"serverDuration": 18, "requestCorrelationId": "de6155ad7402489bb9fa1b53308c4f14"}