CMS — Centers for Medicare & Medicaid Services · API Governance Rules
CMS — Centers for Medicare & Medicaid Services API Rules
Spectral linting rules defining API design standards and conventions for CMS — Centers for Medicare & Medicaid Services.
7 Rules
error 1
warn 4
Rule Categories
cms
Rules
warn
cms-operation-summary-title-case
Operation summaries should use Title Case (matches CMS developer docs style).
$.paths.*.*.summary
warn
cms-fhir-capability-statement-required
FHIR APIs must expose GET /metadata returning a CapabilityStatement.
$.paths
warn
cms-bulk-export-prefer-header
Bulk FHIR $export operations must require a Prefer header.
$.paths[?(@property.match(/\$export$/))].get.parameters[?(@.in=='header')]
warn
cms-operation-tagged
All operations should be tagged.
$.paths.*.*
error
cms-operation-id-required
All operations must declare a camelCase operationId.
$.paths.*.*
hint
cms-fhir-content-type
FHIR responses should use the application/fhir+json content type.
$.paths[?(@property=='/Patient' || @property=='/Coverage' || @property=='/ExplanationOfBenefit')].get.responses.200.content
hint
cms-public-domain-license
CMS APIs are U.S. Government works and should declare Public Domain.
$.info.license