Sonetel · API Governance Rules
Sonetel API Rules
Spectral linting rules defining API design standards and conventions for Sonetel.
11 Rules
error 6
Published by Sonetel
Served by the provider at https://github.com/Sonetel/sonetel-api-docs/blob/fb88f324a5a3acaae635bc61020de53e634de9c0/reference/.spectral.yaml; the copy below was fetched from there.
Rule Categories
2xx
bearer
enum
info
operation
path
schema
Rules
error
info-contact-present
Contact information (name & email) must be provided in the API info object
$.info
error
path-lowercase
All path segments must be lowercase; use hyphens to separate words. Path parameters are exempt.
$.paths.*~
warning
path-parameter-naming
Path parameter names should be lowercase and end with 'id'
$.paths.*.*.parameters[?(@.in=='path')].name
error
operation-summary
Each operation must have a non‑empty summary.
$.paths.*.*
error
operation-description
Each operation must have a description.
$.paths.*.*
warning
operation-id-kebab-case
operationId should be kebab‑case verb‑noun (e.g., get-user).
$.paths.*.*.operationId
error
2xx-response-description
2xx responses must have a description.
$.paths.*.*.responses[?(/^2[0-9]{2}$/.test(@property))]
warning
bearer-auth-header
Operations that require Authorization header must document it.
$.paths.*.*
error
schema-property-snake-case
Schema property names must be snake_case.
$..properties.*~
warning
schema-property-description
All schema properties must have a description.
$..properties.*
warning
enum-values-lowercase
Enum values must be lowercase.
$..enum[*]
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.