Plinth US Grants Data · API Governance Rules
Plinth US Grants Data API Rules
Spectral linting rules defining API design standards and conventions for Plinth US Grants Data.
10 Rules
error 9
warn 1
Rule Categories
plinth
Rules
error
plinth-servers-are-the-public-origin
servers must be the public origin, not the Cloud Run service URL.
$.servers[*].url
error
plinth-paths-under-api
Every published path lives under /api.
$.paths[*]~
error
plinth-operation-id-is-camel-case
operationId must be camelCase — it becomes the SDK method name.
$.paths[*][get,post,put,patch,delete].operationId
error
plinth-operation-is-tagged
Every operation belongs to exactly one documented group.
$.paths[*][get,post,put,patch,delete]
error
plinth-operation-is-described
Every operation carries a summary and a description of real length.
$.paths[*][get,post,put,patch,delete]
error
plinth-metered-errors-documented
A keyed operation documents 401 (no/unknown key) and 402 (allowance spent or plan required).
$.paths[*][get,post,put,patch,delete]
error
plinth-api-key-scheme-declared
The X-API-Key scheme is declared and applied globally.
$
error
plinth-info-states-terms-and-licence
info declares termsOfService, a licence and a contact.
$.info
warn
plinth-external-docs-present
The spec links the human documentation.
$
error
plinth-urls-are-https
Every URL in the description is https.
$..[?(@property === 'url')]