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": 15, "requestCorrelationId": "c7ea1b32efbc4083b65feb1881851c89"}