Heidi Health · API Governance Rules
Heidi Health API Rules
Spectral linting rules defining API design standards and conventions for Heidi Health.
8 Rules
error 3
warn 5
Rule Categories
heidi
Rules
error
heidi-base-url
Servers must include the canonical registrar.api.heidihealth.com production base URL.
$.servers[*].url
warn
heidi-bearer-auth-required
Operations other than /jwt must use bearer auth.
$.paths[?(@property != '/jwt')][*].security
error
heidi-api-key-on-jwt
GET /jwt must be secured with the Heidi-Api-Key header scheme.
$.paths['/jwt'].get.security
warn
heidi-title-case-summary
Operation summaries must be in Title Case.
$.paths[*][*].summary
error
heidi-session-id-path-parameter
Session-scoped paths must use {session_id} as the path parameter name.
$.paths[?(@property =~ /\/sessions\/.*/)]
warn
heidi-content-type-enum
content_type fields must restrict to MARKDOWN or HTML.
$..[?(@property == 'content_type')].enum
warn
heidi-voice-style-enum
voice_style fields must use the documented Heidi enum.
$..[?(@property == 'voice_style')].enum
warn
heidi-brain-enum
brain fields must be LEFT or RIGHT.
$..[?(@property == 'brain')].enum