Superhero API (akabab) · API Governance Rules
Superhero API (akabab) API Rules
Spectral linting rules defining API design standards and conventions for Superhero API (akabab).
9 Rules
error 6
warn 3
Rule Categories
superheroes
Rules
error
superheroes-operation-id-required
Every operation MUST have an operationId.
$.paths[*][get,post,put,patch,delete]
error
superheroes-operation-id-camelcase
operationId MUST be camelCase.
$.paths[*][get,post,put,patch,delete].operationId
warn
superheroes-operation-summary-title-case
Operation summaries SHOULD be Title Case.
$.paths[*][get,post,put,patch,delete].summary
error
superheroes-get-only
The static API is read-only — only GET methods are allowed.
$.paths[*]
error
superheroes-json-extension-on-data-paths
Data endpoints MUST end in `.json` (static file convention).
$.paths
warn
superheroes-character-id-range
The CharacterId parameter MUST constrain id to 1..731.
$.components.parameters.CharacterId.schema
error
superheroes-image-size-enum
Image size path parameter MUST be one of xs, sm, md, lg.
$.paths['/images/{size}/{filename}'].get.parameters[?(@.name=='size')].schema
error
superheroes-license-required
The info.license block MUST be present (project is MIT-licensed).
$.info
warn
superheroes-servers-include-cdn
The servers array SHOULD include the jsDelivr CDN mirror.
$.servers[*].url