Zestful · API Governance Rules
Zestful API Rules
Spectral linting rules defining API design standards and conventions for Zestful.
7 Rules
error 2
warn 5
Rule Categories
zestful
Rules
warn
zestful-operation-id-camel-case
Operation IDs must use camelCase (Zestful convention)
$.paths[*][*].operationId
error
zestful-request-body-required
POST endpoints must define a required request body
$.paths[*].post
warn
zestful-ingredients-array-limits
Ingredients array must enforce min/maxItems limits
$.paths[*].post.requestBody.content.application/json.schema.properties.ingredients
error
zestful-response-200-defined
All operations must define a 200 response
$.paths[*][*].responses
warn
zestful-tags-defined
All operations must have tags
$.paths[*][*].tags
warn
zestful-security-defined
Operations should define security requirements
$.paths[*][*].security
warn
zestful-info-contact
API info must include contact details
$.info