Vector · API Governance Rules
Vector API Rules
Spectral linting rules defining API design standards and conventions for Vector.
16 Rules
error 9
warn 7
Rule Categories
health
info
no
openapi
operation
response
schema
servers
Rules
error
info-title-required
API title must be present.
$.info
warn
info-title-starts-with-vector
API title should start with "Vector".
$.info.title
warn
info-description-required
API description must be present.
$.info
error
info-version-required
API version must be specified.
$.info
error
openapi-version-3x
Must use OpenAPI 3.x.
$
error
servers-required
Servers array must be defined.
$
warn
servers-description-required
Each server should have a description.
$.servers[*]
error
operation-operationId-required
All operations must have an operationId.
$.paths[*][get,post,put,patch,delete,head]
error
operation-summary-required
All operations must have a summary.
$.paths[*][get,post,put,patch,delete,head]
warn
operation-summary-starts-with-vector
Operation summaries should start with "Vector".
$.paths[*][get,post,put,patch,delete].summary
warn
operation-description-required
All operations should have a description.
$.paths[*][get,post,put,patch,delete,head]
error
response-success-required
Operations must define at least one 2xx response.
$.paths[*][get,post,put,patch,delete].responses
error
response-description-required
All responses must have a description.
$.paths[*][*].responses[*]
warn
schema-description-required
Schema definitions should have descriptions.
$.components.schemas[*]
warn
no-empty-descriptions
Descriptions must not be empty strings.
$..description
error
health-endpoint-required
Observability API should expose a /health endpoint.
$.paths