RSC · API Governance Rules
RSC API Rules
Spectral linting rules defining API design standards and conventions for RSC.
8 Rules
error 1
warn 6
info 1
Rule Categories
rsc
Rules
warn
rsc-operation-ids-camel-case
All operationIds must use camelCase naming convention.
$.paths.*[get,post,put,patch,delete].operationId
warn
rsc-tags-title-case
All tags must use Title Case.
$.tags[*].name
warn
rsc-api-key-auth
All operations must use apiKeyAuth security unless explicitly public.
$.paths.*[get,post,put,patch,delete]
warn
rsc-request-body-json
POST request bodies must use application/json content type.
$.paths.*.post.requestBody.content
info
rsc-filter-endpoints-return-query-id
Filter endpoints should return a queryId for async polling.
$.paths['/filter/*'].post.responses.200.content.application/json.schema
warn
rsc-paths-kebab-case
All path segments must use kebab-case.
$.paths
error
rsc-response-200-defined
All operations must define a 200 response.
$.paths.*[get,post,put,patch,delete].responses
warn
rsc-401-defined-for-secured
Secured operations should define a 401 response.
$.paths.*[get,post].responses