Symphony · API Governance Rules
Symphony API Rules
Spectral linting rules defining API design standards and conventions for Symphony.
10 Rules
error 2
warn 7
Rule Categories
symphony
Rules
warn
symphony-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
symphony-operation-has-operation-id
All operations must have an operationId
$.paths[*][get,post,put,delete,patch]
warn
symphony-operation-has-tags
All operations must have at least one tag
$.paths[*][get,post,put,delete,patch]
hint
symphony-session-token-header
Symphony APIs require sessionToken header on authenticated endpoints
$.paths[*][get,post,put,delete,patch].parameters[?(@.name == 'sessionToken')]
warn
symphony-error-response-defined
Operations should define error responses (4xx/5xx)
$.paths[*][get,post,put,delete,patch].responses
warn
symphony-v-prefixed-paths
Symphony API paths should be versioned with /v{n}/ prefix
$.paths
warn
symphony-no-trailing-slash
API paths must not have trailing slashes
$.paths
error
symphony-response-200-defined
All operations must define a 200 or 2xx success response
$.paths[*][get,post,put,delete,patch].responses
warn
symphony-info-contact
API info should include contact information
$.info
warn
symphony-server-defined
API must define at least one server
$