Webex · API Governance Rules
Webex API Rules
Spectral linting rules defining API design standards and conventions for Webex.
29 Rules
error 9
warn 14
info 6
Rule Categories
delete
get
info
no
openapi
operation
parameter
paths
request
response
schema
security
servers
tags
Rules
error
info-title-required
API title must be present and follow "Webex {Product}" naming convention.
$.info
warn
info-description-required
API must have a non-empty description of at least 20 characters.
$.info
error
info-version-required
API info must include a version field.
$.info
error
openapi-version-3
All Webex API specs must use OpenAPI 3.0.x or 3.1.x.
$
warn
servers-defined
At least one server must be defined.
$
error
servers-https-only
Server URLs must use HTTPS.
$.servers[*]
warn
paths-no-trailing-slash
Path must not end with a trailing slash.
$.paths[*]~
info
paths-kebab-case
Path segments must use camelCase or kebab-case (no underscores or uppercase).
$.paths[*]~
error
operation-summary-required
Every operation must have a summary.
$.paths[*][get,post,put,patch,delete,options,head]
warn
operation-summary-title-case
Operation summaries must use Title Case.
$.paths[*][get,post,put,patch,delete].summary
warn
operation-description-required
Every operation must have a description.
$.paths[*][get,post,put,patch,delete,options,head]
error
operation-id-required
Every operation must have an operationId.
$.paths[*][get,post,put,patch,delete,options,head]
warn
operation-tags-required
Every operation must have at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
tags-title-case
Tag names must use Title Case (e.g., "Attachment Actions", "Room Types").
$.tags[*].name
info
tags-description-required
Global tags should have descriptions.
$.tags[*]
warn
parameter-description-required
Every parameter must have a description.
$.paths[*][get,post,put,patch,delete].parameters[*]
warn
parameter-schema-type-required
Every parameter schema must have a type.
$.paths[*][get,post,put,patch,delete].parameters[*].schema
warn
request-body-json-content-type
Request bodies must include an application/json content type.
$.paths[*][post,put,patch].requestBody.content
error
response-success-required
Every operation must define at least one 2xx response.
$.paths[*][get,post,put,patch,delete].responses
info
response-4xx-required
Operations should define 400 or 401 error responses.
$.paths[*][get,post,put,patch,delete].responses
warn
response-description-required
Every response must have a description.
$.paths[*][get,post,put,patch,delete].responses[*]
info
schema-description-required
Top-level component schemas should have descriptions.
$.components.schemas[*]
info
schema-properties-type-defined
Schema properties should have a type defined.
$.components.schemas[*].properties[*]
warn
security-schemes-defined
Security schemes must be defined in components.
$.components
warn
security-bearer-or-oauth2
Webex APIs use Bearer token or OAuth2 authentication.
$.components.securitySchemes[*]
error
get-no-request-body
GET operations must not have a request body.
$.paths[*].get
warn
delete-no-request-body
DELETE operations should not have a request body.
$.paths[*].delete
error
no-empty-descriptions
No descriptions should be empty strings.
$..description
info
operation-examples-encouraged
Operations should include request/response examples.
$.paths[*][post,put,patch].requestBody.content.application/json