Zendit · API Governance Rules
Zendit API Rules
Spectral linting rules defining API design standards and conventions for Zendit.
18 Rules
error 5
warn 13
Rule Categories
info
openapi
operation
parameter
paths
response
schema
security
servers
Rules
error
info-title-required
API title is required
$.info
warn
info-description-required
API description is required
$.info
error
info-version-required
API version is required
$.info
warn
info-contact-required
API contact is required
$.info
warn
openapi-version-3
OpenAPI version should be 3.x
$
error
servers-required
Servers must be defined
$
warn
servers-https
Server URLs should use HTTPS
$.servers[*]
warn
paths-no-trailing-slash
Paths must not have trailing slashes
$.paths
warn
paths-kebab-case
Path segments should be kebab-case
$.paths
warn
operation-summary-required
Operation summary is required
$.paths[*][get,post,put,patch,delete]
warn
operation-description-required
Operation description is required
$.paths[*][get,post,put,patch,delete]
error
operation-operationId-required
operationId is required
$.paths[*][get,post,put,patch,delete]
warn
operation-tags-required
Operation tags are required
$.paths[*][get,post,put,patch,delete]
warn
operation-summary-prefix-zendit
Operation summary should start with "Zendit"
$.paths[*][get,post,put,patch,delete].summary
warn
parameter-description-required
Parameters need a description
$.paths[*][*].parameters[*]
error
response-2xx-required
Operations must define a 2xx success response
$.paths[*][get,post,put,patch,delete].responses
warn
schema-description-required
Top-level schemas need a description
$.components.schemas[*]
warn
security-schemes-defined
Security schemes should be defined
$.components