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": 16, "requestCorrelationId": "c85fee49295f4f709688db163941d0ca"}