Ruby Programming Language and Popular API Gems · API Governance Rules
Ruby Programming Language and Popular API Gems API Rules
Spectral linting rules defining API design standards and conventions for Ruby Programming Language and Popular API Gems.
Ruby Programming Language and Popular API Gems API Rules is a Spectral governance ruleset published by Ruby Programming Language and Popular API Gems on the APIs.io network, containing 7 lint rules.
The ruleset includes 5 error-severity rules and 2 warning-severity rules.
Tagged areas include Programming Language, Ruby, HTTP, REST, and API Clients.
Rulesets can be applied to your own OpenAPI specs via Spectral to enforce the same governance standards.
7 Rules
error 5
warn 2
Rule Categories
rubygems
Rules
error
rubygems-operation-summary-required
Every operation must have a Title Case summary.
$.paths[*][get,post,put,delete,patch,head,options]
warn
rubygems-operation-summary-title-case
Operation summaries must use Title Case (per API Evangelist convention).
$.paths[*][get,post,put,delete,patch,head,options].summary
error
rubygems-operation-id-required
Every operation must declare an operationId for SDK generation.
$.paths[*][get,post,put,delete,patch,head,options]
error
rubygems-tags-required
Every operation must have at least one tag for grouping.
$.paths[*][get,post,put,delete,patch,head,options]
warn
rubygems-json-only-success
2xx responses must offer application/json.
$.paths[*][get,post,put,delete,patch].responses['200','201'].content
error
rubygems-versioned-path
All RubyGems paths must be prefixed with /api/v1/ or /api/v2/.
$.paths
error
rubygems-api-key-security
Mutating operations (POST, PUT, DELETE) must require ApiKeyAuth.
$.paths[*][post,put,delete]