OpenUV · API Governance Rules
OpenUV API Rules
Spectral linting rules defining API design standards and conventions for OpenUV.
13 Rules
error 7
warn 6
Rule Categories
openuv
Rules
error
openuv-title-must-exist
All OpenAPI specs MUST have an info.title.
$.info
warn
openuv-info-contact-required
OpenUV specs MUST provide a support contact.
$.info
error
openuv-server-must-be-https
All OpenUV servers MUST use HTTPS.
$.servers[*].url
error
openuv-server-must-be-api-openuv
OpenUV operations are served from api.openuv.io/api/v1.
$.servers[*].url
error
openuv-operation-operationid-required
All operations MUST declare an operationId.
$.paths[*][get,post,put,patch,delete]
warn
openuv-operation-summary-title-case
Operation summaries MUST be in Title Case.
$.paths[*][get,post,put,patch,delete].summary
error
openuv-operation-tags-required
Every operation MUST have at least one tag.
$.paths[*][get,post,put,patch,delete]
error
openuv-only-get-allowed
OpenUV is a read-only API; only GET operations are allowed.
$.paths[*]
error
openuv-api-key-auth-required
OpenUV uses an x-access-token API key in the header for authentication.
$.components.securitySchemes
warn
openuv-lat-lng-required
UV endpoints MUST require lat and lng query parameters.
$.paths[/uv,/forecast,/protection].get.parameters[*]
warn
openuv-response-envelope
Data responses MUST be wrapped in a `result` envelope.
$.components.schemas[?(@property.match(/Response$/))]
warn
openuv-skin-types-complete
SafeExposureTime MUST cover all six Fitzpatrick skin types (st1-st6).
$.components.schemas.SafeExposureTime.properties
warn
openuv-rate-limit-documented
Specs MUST document the 429 Too Many Requests response.
$.paths[*].get.responses