Absence.io · API Governance Rules
Absence.io API Rules
Spectral linting rules defining API design standards and conventions for Absence.io.
30 Rules
error 14
warn 11
info 5
Rule Categories
examples
id
info
list
no
openapi
operation
parameter
paths
response
schema
security
server
servers
tag
tags
Rules
error
info-title-required
API info must have a title.
$.info
warn
info-title-format
API title should follow the "Absence.io ..." naming pattern.
$.info.title
error
info-description-required
API info must have a description.
$.info
error
info-version-required
API info must have a version.
$.info
error
openapi-version
API must use OpenAPI 3.x.
$
error
servers-required
At least one server must be defined.
$
error
server-https-required
All server URLs must use HTTPS.
$.servers[*].url
warn
paths-lowercase
Path segments should use lowercase with optional underscores.
$.paths
error
operation-summary-required
Every operation must have a summary.
$.paths[*][get,post,put,patch,delete]
warn
operation-summary-prefix
Operation summaries should start with "Absence.io".
$.paths[*][get,post,put,patch,delete].summary
warn
operation-description-required
Every operation should have a description.
$.paths[*][get,post,put,patch,delete]
error
operation-operationid-required
Every operation must have an operationId.
$.paths[*][get,post,put,patch,delete]
warn
operation-operationid-camelcase
OperationIds must use camelCase.
$.paths[*][get,post,put,patch,delete].operationId
error
operation-tags-required
Every operation must have at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
tags-array-defined
Global tags array should be defined.
$
warn
tag-description-required
Each global tag should have a description.
$.tags[*]
error
parameter-description-required
All parameters must have a description.
$.paths[*][get,post,put,patch,delete].parameters[*]
error
response-success-required
Every operation must have at least one 2xx response.
$.paths[*][get,post,put,patch,delete].responses
warn
response-401-required
Every authenticated operation should have a 401 response.
$.paths[*][get,post,put,patch,delete].responses
error
response-description-required
All responses must have a description.
$.paths[*][get,post,put,patch,delete].responses[*]
warn
schema-description-required
Top-level schemas should have descriptions.
$.components.schemas[*]
warn
schema-type-defined
All schemas should have a type defined.
$.components.schemas[*]
info
schema-properties-snake-case
Schema property names should use snake_case or camelCase.
$.components.schemas[*].properties
error
security-schemes-defined
Security schemes must be defined in components.
$.components
warn
operation-security-defined
Every operation should have security defined.
$.paths[*][get,post,put,patch,delete]
info
list-operations-use-post
Absence.io uses POST for list operations (not GET). This is a provider-specific pattern.
$.paths
info
list-request-skip-limit
List request bodies should include skip and limit for pagination.
$.paths[*].post.requestBody.content.application/json.schema.properties
error
no-empty-descriptions
Descriptions must not be empty strings.
$..description
info
examples-encouraged
Operations should have examples for better developer experience.
$.paths[*][get,post,put,patch,delete].responses[*].content[*]
info
id-field-naming
Absence.io uses MongoDB-style _id fields (not id). Ensure IDs follow this convention.
$.components.schemas[*].properties