Wallarm · API Governance Rules
Wallarm API Rules
Spectral linting rules defining API design standards and conventions for Wallarm.
12 Rules
error 5
warn 7
Rule Categories
wallarm
Rules
error
wallarm-operation-ids-required
All operations must have an operationId
$.paths[*][*]
warn
wallarm-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
wallarm-operation-tags-required
All operations must have at least one tag
$.paths[*][*]
error
wallarm-security-scheme-apikey
Operations must use the Wallarm API token security scheme
$.components.securitySchemes
warn
wallarm-responses-defined
Operations must define at least a 200 and 401 response
$.paths[*][*].responses
error
wallarm-request-body-content-type
POST/PUT request bodies must specify application/json content type
$.paths[*][post,put].requestBody.content
warn
wallarm-v4-endpoints-paginated
v4 list endpoints should support pagination parameters
$.paths['/v4/ip_rules'].get.parameters
warn
wallarm-info-contact
Info object must have contact information
$.info
error
wallarm-info-description
Info object must have a description
$.info
warn
wallarm-servers-defined
Both US and EU cloud servers must be defined
$.servers
warn
wallarm-schemas-defined
Components must define reusable schemas
$.components
warn
wallarm-response-schema-reference
Successful responses should reference a schema
$.paths[*][*].responses['200'].content['application/json']