/
API Style Validation Tool
API Style Validation Tool
Spectral
We have successfully applied Spectral along with custom rules to "lint" Swagger files based on the ONAP Swagger style guide!
Spectral may be found at: https://github.com/stoplightio/spectral
Instructions to install Spectral may be found at: https://stoplight.io/p/docs/gh/stoplightio/spectral/docs/getting-started/installation.md
With Spectral, ONAP can provide our own ruleset file extending the rules used by Spectral.
The Draft ONAP Swagger Specific Style Rules for Spectral may be found here: ONAP Swagger Style Ruleset for 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
Additional information on Spectral Rulesets may be found at: https://stoplight.io/p/docs/gh/stoplightio/spectral/docs/getting-started/rulesets.md
, multiple selections available,
Related content
Proposed Phase 1+ OpenAPI 2.0 / Swagger Style Guide
Proposed Phase 1+ OpenAPI 2.0 / Swagger Style Guide
More like this
swagger-sdk
swagger-sdk
More like this
Investigation of Swagger Documentation Generation
Investigation of Swagger Documentation Generation
More like this
Data Dictionary API Swagger
Data Dictionary API Swagger
More like this
SDC SWAGGER
SDC SWAGGER
More like this
Usability (New)
Usability (New)
More like this