Whatfix · API Governance Rules
Whatfix API Rules
Spectral linting rules defining API design standards and conventions for Whatfix.
10 Rules
error 4
warn 6
Rule Categories
whatfix
Rules
error
whatfix-account-id-in-path
All Whatfix API paths must include {accountId} as the first path segment.
$.paths.*~
warn
whatfix-operation-ids-camel-case
All operationIds should use camelCase.
$.paths.*.*.operationId
warn
whatfix-analytics-date-params
Analytics endpoints should have startDate and endDate parameters.
$.paths[?(@property.includes('analytics'))].get
error
whatfix-security-required
All operations must reference the ApiKeyAuth security scheme.
$.paths.*.*
error
whatfix-response-200-defined
All GET operations must define a 200 response.
$.paths.*.get
warn
whatfix-pagination-on-list-endpoints
List endpoints (returning arrays) should include pagination in response schema.
$.paths.*.get.responses.200.content.application/json.schema
warn
whatfix-error-responses-defined
All operations should define 401 and 403 error responses.
$.paths.*.*
error
whatfix-tags-on-operations
All operations must have at least one tag.
$.paths.*.*
warn
whatfix-kebab-case-paths
Path segments (excluding parameters) should use kebab-case.
$.paths.*~
warn
whatfix-description-on-operations
All operations should have a description.
$.paths.*.*