Stytch · API Governance Rules
Stytch API Rules
Spectral linting rules defining API design standards and conventions for Stytch.
9 Rules
error 3
warn 5
Rule Categories
stytch
Rules
error
stytch-operation-id-required
All Stytch API operations must have an operationId
$.paths[*][get,post,put,patch,delete]
warn
stytch-operation-id-camel-case
Stytch operationIds use camelCase
$.paths[*][get,post,put,patch,delete].operationId
warn
stytch-tags-required
All operations must include at least one tag
$.paths[*][get,post,put,patch,delete]
error
stytch-auth-basic
Stytch APIs use Basic auth (project_id + secret)
$.components.securitySchemes
warn
stytch-response-200
All operations must define a 200 response
$.paths[*][get,post,put,patch,delete].responses
error
stytch-servers-defined
API must define servers including test and production
$
warn
stytch-request-body-for-post
POST operations should define a requestBody
$.paths[*].post
warn
stytch-no-trailing-slash
API paths must not end with a trailing slash
$.paths[*]~
hint
stytch-description-required
Operations should have a description
$.paths[*][get,post,put,patch,delete]