Synapse · API Governance Rules
Synapse API Rules
Spectral linting rules defining API design standards and conventions for Synapse.
8 Rules
error 2
warn 4
Rule Categories
synapse
Rules
warn
synapse-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
synapse-operation-has-operation-id
All operations must have an operationId
$.paths[*][get,post,put,delete,patch]
warn
synapse-matrix-path-prefix
Admin API paths should be prefixed with /v1/ or /v2/
$.paths
warn
synapse-bearer-auth-required
All Admin API operations require Bearer token authentication
$.paths[*][get,post,put,delete,patch]
warn
synapse-error-response-defined
Operations should define error responses
$.paths[*][get,post,put,delete,patch].responses
hint
synapse-matrix-user-id-format
Matrix user IDs should follow @localpart:domain format
$.components.schemas.*.properties.name
hint
synapse-pagination-token
List operations should support pagination parameters
$.paths[*][get].parameters[?(@.name == 'limit')]
error
synapse-response-200-defined
All operations must define a success response
$.paths[*][get,post,put,delete,patch].responses