Relay App · API Governance Rules
Relay App API Rules
Spectral linting rules defining API design standards and conventions for Relay App.
10 Rules
error 2
warn 7
info 1
Rule Categories
relay
Rules
warn
relay-app-versioned-paths
All paths should be prefixed with /v1/ for API versioning.
$.paths
warn
relay-app-webhook-id-required
Webhook paths should include a webhookId path parameter.
$.paths[?(@property =~ /webhook/)]
error
relay-app-operation-ids
All operations must have unique operationIds in camelCase.
$.paths[*][*]
warn
relay-app-operation-id-camel-case
OperationIds should use camelCase naming convention.
$.paths[*][*].operationId
warn
relay-app-title-case-summaries
Operation summaries should use Title Case.
$.paths[*][*].summary
error
relay-app-operation-tags
All operations should have at least one tag for grouping.
$.paths[*][*]
warn
relay-app-response-descriptions
All response objects should include a description.
$.paths[*][*].responses[*]
info
relay-app-status-enum
Status-related fields should use enum values for type safety.
$.components.schemas[*].properties.status
warn
relay-app-webhook-response-run-id
Webhook trigger responses should include a runId field for tracking.
$.components.schemas.WebhookTriggerResponse.properties
warn
relay-app-kebab-case-paths
Path segments should use kebab-case.
$.paths