Affinda · API Governance Rules
Affinda API Rules
Spectral linting rules defining API design standards and conventions for Affinda.
8 Rules
error 2
warn 5
info 1
Rule Categories
affinda
Rules
error
affinda-paths-must-be-v3-prefixed
All Affinda API paths must be prefixed with /v3/.
$.paths[*]~
warn
affinda-paths-must-be-snake-case
Affinda uses snake_case in path segments (e.g. /v3/document_types, /v3/resthook_subscriptions).
$.paths[*]~
error
affinda-must-use-bearer-or-apikey
Affinda accepts Bearer tokens via Authorization header.
$.components.securitySchemes[*]
warn
affinda-operations-must-have-tags
Every Affinda operation must declare at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
affinda-operations-should-have-operationId
Operations should declare an operationId for SDK generation.
$.paths[*][get,post,put,patch,delete]
warn
affinda-summaries-should-be-title-case
Operation summaries should use Title Case.
$.paths[*][get,post,put,patch,delete].summary
info
affinda-no-deprecated-tag-in-public-spec
Endpoints tagged "Deprecated End Points" should not be promoted to consumers.
$.paths[*][get,post,put,patch,delete].tags[*]
warn
affinda-server-must-be-regional
The server URL must use the Affinda regional pattern.
$.servers[*].url