Tesla Energy · API Governance Rules
Tesla Energy API Rules
Spectral linting rules defining API design standards and conventions for Tesla Energy.
8 Rules
error 2
warn 6
Rule Categories
tesla
Rules
warn
tesla-energy-info-contact
Tesla Energy API specs must declare a contact pointing at developer.tesla.com.
$.info.contact
error
tesla-energy-bearer-auth
All operations must use the BearerAuth security scheme.
$.paths.*[get,post,put,delete,patch]
warn
tesla-energy-energy-sites-path
Energy site paths must live under /energy_sites/{site_id}/...
$.paths
warn
tesla-energy-title-case-summary
Operation summaries should be in Title Case and start with "Tesla ".
$.paths.*[get,post,put,delete,patch].summary
warn
tesla-energy-snake-case-properties
Schema properties should be snake_case to match Tesla's payload conventions.
$.components.schemas.*.properties.*~
warn
tesla-energy-operation-id-camel
Operation IDs should be camelCase.
$.paths.*[get,post,put,delete,patch].operationId
warn
tesla-energy-401-defined
All operations must declare a 401 Unauthorized response.
$.paths.*[get,post,put,delete,patch].responses
error
tesla-energy-server-fleet
Server URL must point at a fleet-api.*.cloud.tesla.com host.
$.servers.*