Oura · API Governance Rules
Oura API Rules
Spectral linting rules defining API design standards and conventions for Oura.
7 Rules
error 1
warn 5
info 1
Rule Categories
oura
Rules
warn
oura-paths-must-start-with-v2
All Oura paths must start with /v2/.
$.paths[*]~
warn
oura-info-title-must-be-oura-api
info.title should be 'Oura API'.
$.info.title
warn
oura-openapi-version-3_1
Oura uses OpenAPI 3.1.
$.openapi
warn
oura-operation-needs-summary
Every operation must have a summary.
$.paths.*[get,post,put,delete,patch]
error
oura-operation-needs-operationid
Every operation must have an operationId.
$.paths.*[get,post,put,delete,patch]
warn
oura-bearer-or-oauth2-security
Security schemes should include HTTPBearer and/or OAuth2.
$.components.securitySchemes
info
oura-sandbox-mirror-usercollection
Every /v2/sandbox/usercollection/* path should mirror a /v2/usercollection/* path.
$.paths[?(@property.match(/^\/v2\/sandbox\/usercollection\//))]~