Tesla · API Governance Rules
Tesla API Rules
Spectral linting rules defining API design standards and conventions for Tesla.
8 Rules
error 1
warn 5
info 2
Rule Categories
tesla
Rules
error
tesla-operation-ids-present
All operations must have operationId defined
$.paths.*[get,post,put,patch,delete]
warn
tesla-operation-id-pascal-case
Operation IDs should use PascalCase
$.paths.*[get,post,put,patch,delete].operationId
info
tesla-summaries-start-with-provider
Tesla API summaries should start with the provider name "Tesla"
$.paths.*[get,post,put,patch,delete].summary
warn
tesla-tags-required
Each operation should have at least one tag
$.paths.*[get,post,put,patch,delete]
warn
tesla-bearer-auth
Tesla API uses OAuth2 bearer token authentication
$.components.securitySchemes.*
info
tesla-vehicle-id-path-param
Vehicle endpoints should use vehicle_id path parameter
$.paths./api/1/vehicles/*
warn
tesla-response-200
Operations should define a 200 response
$.paths.*[get,post]
warn
tesla-parameter-descriptions
Path parameters should have descriptions
$.paths..parameters[?(@.in == 'path')]