Sync Labs · API Governance Rules
Sync Labs API Rules
Spectral linting rules defining API design standards and conventions for Sync Labs.
8 Rules
error 1
warn 5
info 1
Rule Categories
sync
Rules
warn
sync-labs-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
sync-labs-operation-has-operation-id
All operations must have an operationId
$.paths[*][get,post,put,delete,patch]
warn
sync-labs-api-key-auth
All operations should use API key authentication
$
info
sync-labs-v2-versioned-paths
API paths should use versioned base URL (/v2/)
$.servers[*].url
warn
sync-labs-async-status-field
Async generation responses must include a status field
$.components.schemas.GenerationResponse.properties
warn
sync-labs-error-response-defined
Operations should define error responses
$.paths[*][get,post,put,delete,patch].responses
warn
sync-labs-rate-limit-documented
Rate-limited endpoints should document 429 response
$.paths['/generate']['post'].responses
hint
sync-labs-webhook-url-format
Webhook URL parameters should use URI format
$.components.schemas.*.properties.webhook_url