Eaton · API Governance Rules

Eaton API Rules

Spectral linting rules defining API design standards and conventions for Eaton.

6 Rules error 3 warn 3
View Rules File View on GitHub

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]

Spectral Ruleset

Raw ↑
extends: [[spectral:oas, all]]
documentationUrl: https://api.em.eaton.com/docs
rules:
  eaton-info-contact:
    description: Info object MUST identify the Eaton AbleEdge Developer Portal as contact.
    severity: warn
    given: $.info
    then:
      - field: contact.url
        function: pattern
        functionOptions:
          match: "portal.em.eaton.com|api.em.eaton.com|developer.eaton.com"

  eaton-bearer-and-subscription-key:
    description: All Eaton EM API operations MUST require both OAuth2 Bearer and Em-Api-Subscription-Key.
    severity: error
    given: $
    then:
      - field: components.securitySchemes.OAuth2
        function: truthy
      - field: components.securitySchemes.SubscriptionKey
        function: truthy

  eaton-subscription-key-header-name:
    description: The subscription-key apiKey scheme MUST use header name `Em-Api-Subscription-Key`.
    severity: error
    given: $.components.securitySchemes[?(@.type=='apiKey')]
    then:
      - field: name
        function: pattern
        functionOptions:
          match: "^Em-Api-Subscription-Key$"

  eaton-title-case-summary:
    description: Operation summaries MUST be in Title Case.
    severity: warn
    given: $.paths.*[get,post,put,patch,delete].summary
    then:
      function: pattern
      functionOptions:
        match: "^([A-Z][a-zA-Z0-9]*)(\\s+[A-Z][a-zA-Z0-9]*)*$"

  eaton-hardware-type-enum:
    description: Device.hardwareType MUST be one of `emcb` or `ev-emcb`.
    severity: error
    given: $.components.schemas.Device.properties.hardwareType
    then:
      field: enum
      function: schema
      functionOptions:
        schema:
          type: array
          items: { type: string, enum: [emcb, ev-emcb] }

  eaton-ev-only-tag:
    description: EV-charger operations MUST be tagged `EV Only`.
    severity: warn
    given: $.paths[?(@property =~ /\/ev\//)][get,post,put,patch,delete]
    then:
      field: tags
      function: schema
      functionOptions:
        schema:
          type: array
          contains: { const: "EV Only" }

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/smart-breaker-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.