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": 14, "requestCorrelationId": "84e1c69ff5f04dc0a8435d482a8c1678"}