Aptible · API Governance Rules
Aptible API Rules
Spectral linting rules defining API design standards and conventions for Aptible.
60 Rules
error 35
warn 13
info 12
Generated by API Evangelist
Written by API Evangelist tooling for Aptible's APIs. It is a starting point, not a ruleset Aptible publishes or enforces.
Rule Categories
contact
info
mediatype
operation
operationid
parameter
path
property
requestbody
response
root
schema
securityscheme
server
servers
tag
write
Rules
error
operation-has-operationid
Every operation declares an operationId (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete]
info
operationid-casing-pascal
operationIds are pascal case (measured: 86% of this contract)
$.paths[*][get,post,put,patch,delete].operationId
error
operation-has-summary
Every operation has a summary (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete]
info
operation-has-description
Every operation has a description (measured: 86% of this contract)
$.paths[*][get,post,put,patch,delete]
error
operation-has-tags
Every operation is tagged (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete]
error
operation-has-success-response
Every operation declares a 2xx response (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete].responses
info
root-security-declared
The contract declares security at the root (measured: 82% of this contract)
$
warn
path-segment-casing-snake
Path segments are snake case (measured: 99% of this contract)
$.paths[*]~
warn
path-no-trailing-slash
Paths carry no trailing slash (measured: 98% of this contract)
$.paths[*]~
error
path-params-in-braces
Path parameters use {braces}, not :colon (measured: 100% of this contract)
$.paths[*]~
info
servers-https
Servers are https (measured: 81% of this contract)
$.servers[*].url
error
write-declares-request-body
POST and PUT declare a request body (measured: 100% of this contract)
$.paths[*][post,put]
info
response-media-type
Responses are served as application/hal+json (measured: 86% of this contract)
$.paths[*][get,post,put,patch,delete].responses[*].content
info
property-name-casing-snake
Schema property names are snake case (measured: 87% of this contract)
$.components.schemas[*].properties[*]~
info
info-has-description
The contract's info block carries a description (measured: 84% of this contract)
$.info
error
info-title-present
Info declares title (measured: 100% of this contract)
$.info
warn
info-title-min-length
Info.title runs at least 16 characters (measured: 96% of this contract)
$.info.title
info
info-description-present
Info declares description (measured: 84% of this contract)
$.info
error
info-description-min-length
Info.description runs at least 39 characters (measured: 100% of this contract)
$.info.description
error
info-version-present
Info declares version (measured: 100% of this contract)
$.info
error
info-version-semver
info.version is numeric (measured: 100% of this contract)
$.info.version
error
contact-email-present
Contact declares email (measured: 100% of this contract)
$.info.contact
error
server-url-present
Server declares url (measured: 100% of this contract)
$.servers[*]
info
server-variables-present
Server declares variables (measured: 81% of this contract)
$.servers[*]
error
tag-name-present
Tag declares name (measured: 100% of this contract)
$.tags[*]
warn
tag-name-casing-pascal
Tag.name is pascal case (measured: 94% of this contract)
$.tags[*].name
error
operation-tags-present
Operation declares tags (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
error
operation-summary-present
Operation declares summary (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
warn
operation-summary-min-length
Operation.summary runs at least 10 characters (measured: 95% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].summary
info
operation-description-present
Operation declares description (measured: 86% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
warn
operation-description-min-length
Operation.description runs at least 30 characters (measured: 95% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].description
error
operation-operationid-present
Operation declares operationId (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
info
operation-operationid-casing-pascal
Operation.operationId is pascal case (measured: 86% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].operationId
warn
operation-parameters-present
Operation declares parameters (measured: 97% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
error
operation-responses-present
Operation declares responses (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
error
parameter-name-present
Parameter declares name (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
error
parameter-in-present
Parameter declares in (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
error
parameter-in-values
Parameter.in is one of header, path, query (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].in
warn
parameter-description-present
Parameter declares description (measured: 93% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
error
parameter-description-min-length
Parameter.description runs at least 2 characters (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].description
error
parameter-required-present
Parameter declares required (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
warn
parameter-style-present
Parameter declares style (measured: 99% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
error
parameter-style-values
Parameter.style is one of form, simple (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].style
warn
parameter-explode-present
Parameter declares explode (measured: 99% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
error
parameter-schema-present
Parameter declares schema (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
error
requestbody-content-present
RequestBody declares content (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].requestBody
error
mediatype-schema-present
MediaType declares schema (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*].content[*]
error
response-description-present
Response declares description (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*]
warn
response-description-min-length
Response.description runs at least 10 characters (measured: 98% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*].description
warn
response-content-present
Response declares content (measured: 91% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*]
info
schema-type-present
Schema declares type (measured: 86% of this contract)
$.components.schemas[*]
error
schema-type-values
Schema.type is one of object, string (measured: 100% of this contract)
$.components.schemas[*].type
error
schema-description-min-length
Schema.description runs at least 15 characters (measured: 100% of this contract)
$.components.schemas[*].description
warn
schema-properties-present
Schema declares properties (measured: 93% of this contract)
$.components.schemas[*]
error
securityscheme-type-present
SecurityScheme declares type (measured: 100% of this contract)
$.components.securitySchemes[*]
error
securityscheme-type-values
SecurityScheme.type is one of apiKey, http (measured: 100% of this contract)
$.components.securitySchemes[*].type
error
securityscheme-name-casing-pascal
SecurityScheme.name is pascal case (measured: 100% of this contract)
$.components.securitySchemes[*].name
error
securityscheme-in-values
SecurityScheme.in is one of header (measured: 100% of this contract)
$.components.securitySchemes[*].in
error
securityscheme-scheme-values
SecurityScheme.scheme is one of bearer (measured: 100% of this contract)
$.components.securitySchemes[*].scheme
error
securityscheme-bearerformat-values
SecurityScheme.bearerFormat is one of Token (measured: 100% of this contract)
$.components.securitySchemes[*].bearerFormat
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.