TECO Energy · API Governance Rules

TECO Energy API Rules

Spectral linting rules defining API design standards and conventions for TECO Energy.

10 Rules error 4 warn 5
View Rules File View on GitHub

Rule Categories

teco

Rules

warn
teco-energy-operation-ids-camel-case
Operation IDs must use camelCase naming convention.
$.paths[*][*].operationId
warn
teco-energy-bearer-auth-required
All non-public endpoints must use bearer authentication.
$.paths[*][*]
error
teco-energy-responses-have-descriptions
All responses must have descriptions.
$.paths[*][*].responses[*]
warn
teco-energy-operations-have-tags
All operations must be tagged.
$.paths[*][*]
error
teco-energy-operations-have-summaries
All operations must have a summary.
$.paths[*][*]
warn
teco-energy-title-case-summaries
Operation summaries must use Title Case.
$.paths[*][*].summary
hint
teco-energy-account-number-in-path
Account-scoped operations must use accountNumber path parameter.
$.paths['/accounts/{accountNumber}'][*].parameters[*]
error
teco-energy-servers-defined
API must define at least one server.
$
warn
teco-energy-components-schemas
API must define reusable schemas in components.
$.components
error
teco-energy-security-schemes-defined
API must define security schemes.
$.components

Spectral Ruleset

Raw ↑
extends:
  - spectral:oas

rules:
  teco-energy-operation-ids-camel-case:
    description: Operation IDs must use camelCase naming convention.
    message: "Operation ID '{{value}}' must use camelCase."
    severity: warn
    given: "$.paths[*][*].operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]*$"

  teco-energy-bearer-auth-required:
    description: All non-public endpoints must use bearer authentication.
    message: "Operation should define bearer security scheme."
    severity: warn
    given: "$.paths[*][*]"
    then:
      field: security
      function: truthy

  teco-energy-responses-have-descriptions:
    description: All responses must have descriptions.
    message: "Response must include a description."
    severity: error
    given: "$.paths[*][*].responses[*]"
    then:
      field: description
      function: truthy

  teco-energy-operations-have-tags:
    description: All operations must be tagged.
    message: "Operation must have at least one tag."
    severity: warn
    given: "$.paths[*][*]"
    then:
      field: tags
      function: truthy

  teco-energy-operations-have-summaries:
    description: All operations must have a summary.
    message: "Operation must include a summary."
    severity: error
    given: "$.paths[*][*]"
    then:
      field: summary
      function: truthy

  teco-energy-title-case-summaries:
    description: Operation summaries must use Title Case.
    message: "Summary '{{value}}' should use Title Case."
    severity: warn
    given: "$.paths[*][*].summary"
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][a-zA-Z0-9 ]*$"

  teco-energy-account-number-in-path:
    description: Account-scoped operations must use accountNumber path parameter.
    message: "Account endpoints should use 'accountNumber' as the path parameter name."
    severity: hint
    given: "$.paths['/accounts/{accountNumber}'][*].parameters[*]"
    then:
      function: schema
      functionOptions:
        schema:
          type: object

  teco-energy-servers-defined:
    description: API must define at least one server.
    message: "API must include a servers array."
    severity: error
    given: "$"
    then:
      field: servers
      function: truthy

  teco-energy-components-schemas:
    description: API must define reusable schemas in components.
    message: "API should define schemas in components/schemas."
    severity: warn
    given: "$.components"
    then:
      field: schemas
      function: truthy

  teco-energy-security-schemes-defined:
    description: API must define security schemes.
    message: "API must define security schemes in components/securitySchemes."
    severity: error
    given: "$.components"
    then:
      field: securitySchemes
      function: truthy

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/teco-energy-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 email required.

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