Checkiday - National Holiday and Event API · API Governance Rules
Checkiday - National Holiday and Event API API Rules
Spectral linting rules defining API design standards and conventions for Checkiday - National Holiday and Event API.
10 Rules
error 6
warn 2
info 2
Rule Categories
checkiday
Rules
error
checkiday-operation-id-camelcase
Operation IDs MUST be camelCase.
$.paths[*][*].operationId
warn
checkiday-summary-title-case
Operation summaries MUST be in Title Case.
$.paths[*][*].summary
error
checkiday-tag-required
Every operation MUST have at least one tag.
$.paths[*][*]
error
checkiday-apikey-header-auth-required
The API MUST declare an apiKey header security scheme named `apikey` (apilayer convention).
$.components.securitySchemes
error
checkiday-security-applied
Every operation MUST require the apikey security scheme.
$.paths[*][*]
warn
checkiday-rate-limit-headers
Successful responses SHOULD document `x-ratelimit-limit-month` and `x-ratelimit-remaining-month` headers.
$.paths[*][*].responses.200.headers
info
checkiday-event-id-format
Event IDs SHOULD be 32-character lowercase hexadecimal strings.
$.components.schemas.EventSummary.properties.id
error
checkiday-search-query-min-length
The `query` parameter on /search MUST enforce a minimum length of 3.
$.paths['/search'].get.parameters[?(@.name=='query')].schema
info
checkiday-snake-case-response-fields
Response object property names SHOULD use snake_case (Checkiday convention) — except rateLimit envelope.
$.components.schemas[*].properties[?(@property.match(/^[A-Z]/))]
error
checkiday-base-url-apilayer
The server URL MUST be routed through api.apilayer.com.
$.servers[*].url