Telefónica · API Governance Rules
Telefónica API Rules
Spectral linting rules defining API design standards and conventions for Telefónica.
11 Rules
error 5
warn 6
Rule Categories
telefonica
Rules
warn
telefonica-operation-ids-camel-case
Operation IDs must use camelCase naming convention.
$.paths[*][*].operationId
error
telefonica-operations-have-summaries
All operations must have a summary.
$.paths[*][*]
warn
telefonica-title-case-summaries
Operation summaries must use Title Case.
$.paths[*][*].summary
warn
telefonica-operations-have-tags
All operations must be tagged.
$.paths[*][*]
error
telefonica-responses-have-descriptions
All responses must have descriptions.
$.paths[*][*].responses[*]
warn
telefonica-openid-security-scheme
Telefónica Open Gateway APIs must use OpenID Connect authentication.
$.components.securitySchemes[*]
warn
telefonica-phone-number-e164-pattern
Phone number fields must use E.164 format pattern.
$.components.schemas[*].properties.phoneNumber
error
telefonica-error-response-schema
Error responses must define a schema.
$.paths[*][*].responses[4*].content.application/json
error
telefonica-servers-defined
API must define production and sandbox servers.
$
error
telefonica-camara-version
CAMARA APIs should include version information in info.
$.info
warn
telefonica-license-defined
Open Gateway APIs must include license information.
$.info