Vanta · API Governance Rules
Vanta API Rules
Spectral linting rules defining API design standards and conventions for Vanta.
10 Rules
error 3
warn 7
Rule Categories
vanta
Rules
warn
vanta-operation-summary-title-case
All operation summaries must use Title Case
$.paths[*][*].summary
error
vanta-operation-ids-present
All operations must have an operationId
$.paths[*][*]
warn
vanta-paths-versioned
All data paths must be versioned with /v1/ prefix
$.paths
warn
vanta-pagination-page-size
List endpoints must support pageSize query parameter
$.paths[*].get.parameters[?(@.name=='pageSize')]
warn
vanta-responses-have-content
Successful responses must define a content schema
$.paths[*][*].responses.200
warn
vanta-auth-documented
All operations should document their security requirements
$.paths[*][*]
warn
vanta-error-responses-defined
All operations must define 401 Unauthorized response
$.paths[*][*].responses
error
vanta-request-body-for-post
POST operations must have a request body
$.paths[*].post
warn
vanta-tags-singular-or-plural-consistent
Operation tags must match defined tag list
$.paths[*][*].tags[*]
error
vanta-path-params-in-path
Path parameters must be defined in the path segment
$.paths[*][*].parameters[?(@.in=='path')]