Eaton · API Governance Rules
Eaton API Rules
Spectral linting rules defining API design standards and conventions for Eaton.
Eaton API Rules is a Spectral governance ruleset published by Eaton on the APIs.io network, containing 6 lint rules.
The ruleset includes 3 error-severity rules and 3 warning-severity rules.
Tagged areas include Power Management, Electrical, Smart Breaker, EV Charging, and Demand Response.
Rulesets can be applied to your own OpenAPI specs via Spectral to enforce the same governance standards.
6 Rules
error 3
warn 3
Rule Categories
eaton
Rules
warn
eaton-info-contact
Info object MUST identify the Eaton AbleEdge Developer Portal as contact.
$.info
error
eaton-bearer-and-subscription-key
All Eaton EM API operations MUST require both OAuth2 Bearer and Em-Api-Subscription-Key.
$
error
eaton-subscription-key-header-name
The subscription-key apiKey scheme MUST use header name `Em-Api-Subscription-Key`.
$.components.securitySchemes[?(@.type=='apiKey')]
warn
eaton-title-case-summary
Operation summaries MUST be in Title Case.
$.paths.*[get,post,put,patch,delete].summary
error
eaton-hardware-type-enum
Device.hardwareType MUST be one of `emcb` or `ev-emcb`.
$.components.schemas.Device.properties.hardwareType
warn
eaton-ev-only-tag
EV-charger operations MUST be tagged `EV Only`.
$.paths[?(@property =~ /\/ev\//)][get,post,put,patch,delete]