Stitch · API Governance Rules
Stitch API Rules
Spectral linting rules defining API design standards and conventions for Stitch.
7 Rules
error 5
warn 2
Rule Categories
stitch
Rules
error
stitch-bearer-auth-required
All Stitch GraphQL operations must use Bearer token authentication obtained from the OAuth 2.0 token endpoint.
$.components.securitySchemes
error
stitch-graphql-endpoint-post-only
The Stitch GraphQL endpoint (/graphql) must only accept POST requests.
$.paths./graphql
error
stitch-response-200-required
All Stitch operations must define a 200 success response.
$.paths[*][*]
warn
stitch-operationid-camel-case
OperationIds must use camelCase.
$.paths[*][*].operationId
warn
stitch-tags-title-case
All operation tags must use Title Case.
$.paths[*][*].tags[*]
error
stitch-server-https
All Stitch API servers must use HTTPS.
$.servers[*].url
error
stitch-token-endpoint-form-encoded
The Stitch OAuth token endpoint must accept application/x-www-form-urlencoded content type per OAuth 2.0 specification.
$.paths./connect/token.post.requestBody.content