Clio · API Governance Rules
Clio API Rules
Spectral linting rules defining API design standards and conventions for Clio.
10 Rules
error 4
warn 5
info 1
Rule Categories
clio
Rules
error
clio-info-contact
API contact information must be present.
$.info
warn
clio-info-license
API license must be declared.
$.info
error
clio-server-https
All server URLs must use HTTPS.
$.servers[*].url
warn
clio-server-versioned
Manage API server URLs must include /api/v4.
$.servers[?(@.url && @.url.indexOf('clio.com') > -1)].url
error
clio-oauth-security
OAuth 2.0 must be the declared security scheme.
$.components.securitySchemes[*].type
warn
clio-operation-tags
Every operation must declare at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
clio-operation-summary
Every operation must include a short summary.
$.paths[*][get,post,put,patch,delete]
error
clio-operation-id
Every operation must declare a unique operationId.
$.paths[*][get,post,put,patch,delete]
warn
clio-error-responses
Mutating operations should declare 4xx error responses.
$.paths[*][post,put,patch,delete].responses
info
clio-pagination-fields
List endpoints should support page, limit, fields, and order parameters.
$.paths[?(@property.match(/matters$|contacts$|activities$|tasks$|bills$/))].get.parameters[*].name