WISK.ai · API Governance Rules
WISK.ai API Rules
Spectral linting rules defining API design standards and conventions for WISK.ai.
26 Rules
error 7
warn 15
info 4
Rule Categories
info
openapi
operation
paths
post
request
response
schema
security
servers
tag
Rules
error
info-title-required
API must have a title.
$.info
info
info-title-wisk-prefix
API title should reference WISK.
$.info.title
warn
info-description-required
API must have a description of reasonable length.
$.info
error
info-version-required
API must declare a version.
$.info
warn
openapi-version-3
Specs must use OpenAPI 3.0.x.
$.openapi
error
servers-defined
At least one server must be defined.
$.servers
error
servers-https
Server URLs must use HTTPS.
$.servers[*].url
warn
paths-lowercase
Path segments must be lower-case (kebab-case), no upper-case.
$.paths[*]~
warn
paths-no-trailing-slash
Paths must not end with a trailing slash.
$.paths[*]~
error
operation-operationId-required
Every operation must have an operationId.
$.paths[*][get,post,put,patch,delete]
warn
operation-operationId-camelcase
operationId should be camelCase.
$.paths[*][get,post,put,patch,delete].operationId
error
operation-summary-required
Every operation must have a summary.
$.paths[*][get,post,put,patch,delete]
info
operation-summary-title-case
Operation summaries should be Title Case.
$.paths[*][get,post,put,patch,delete].summary
warn
operation-description-required
Every operation must have a description.
$.paths[*][get,post,put,patch,delete]
warn
operation-tags-required
Every operation must be tagged.
$.paths[*][get,post,put,patch,delete]
info
tag-global-defined
Global tags array should be defined with descriptions.
$.tags[*]
warn
tag-title-case
Tag names should be Title Case.
$.tags[*].name
warn
request-body-json
Request bodies should offer application/json.
$.paths[*][post,put,patch].requestBody.content
warn
post-requires-request-body
POST operations should declare a request body.
$.paths[*].post
error
response-success-defined
Operations must define a 2xx success response.
$.paths[*][get,post,put,patch,delete].responses
warn
response-description-required
Every response must have a description.
$.paths[*][get,post,put,patch,delete].responses[*]
warn
schema-property-snake-case
Schema property names should be snake_case.
$.components.schemas[*].properties[*]~
warn
schema-property-type-defined
Schema properties must declare a type or $ref.
$.components.schemas[*].properties[*]
info
schema-property-description
Schema properties should have descriptions.
$.components.schemas[*].properties[*]
warn
security-schemes-defined
Security schemes must be defined under components.
$.components
warn
security-apikey-in-header
API key security schemes must be placed in the header.
$.components.securitySchemes[?(@.type=='apiKey')]