Adafruit IO · API Governance Rules
Adafruit IO API Rules
Spectral linting rules defining API design standards and conventions for Adafruit IO.
8 Rules
error 1
warn 5
Rule Categories
adafruit
Rules
error
adafruit-io-https-only
All servers must use HTTPS.
$.servers[*]
warn
adafruit-io-base-path-v2
API base path must start with /api/v2.
$.servers[*]
warn
adafruit-io-username-scoped
Every account-scoped path must be parameterized on {username}.
$.paths[?(@property != '/user' && @property !~ '^/webhooks')]~
warn
adafruit-io-operation-summary-title-case
Operation summaries should use Title Case.
$.paths[*][get,post,put,patch,delete].summary
warn
adafruit-io-api-key-security
Operations must declare the X-AIO-Key API key security scheme (except inbound webhooks).
$.paths[?([email protected]('^/webhooks'))][*][get,post,put,patch,delete]
hint
adafruit-io-snake-case-path-params
Path parameters use snake_case (feed_key, group_key, dashboard_id).
$.paths[*][get,post,put,patch,delete].parameters[?(@.in == "path")].name
hint
adafruit-io-pagination-headers
List endpoints should document the X-Pagination-* and Link headers.
$.paths[*][get].responses[200].headers
warn
adafruit-io-response-schema
2xx responses should reference a schema component.
$.paths[*][get,post,put,patch].responses[200,201].content[application/json].schema