Tesla Motors · API Governance Rules
Tesla Motors API Rules
Spectral linting rules defining API design standards and conventions for Tesla Motors.
7 Rules
error 1
warn 5
info 1
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
warn
tesla-bearer-auth
Tesla API uses bearer token authentication
$.components.securitySchemes.*
warn
tesla-tags-required
Each operation should have at least one tag
$.paths.*[get,post,put,patch,delete]
info
tesla-vehicle-id-path-param
Vehicle endpoints should use vehicle_id path parameter
$.paths./api/1/vehicles/*
warn
tesla-summaries-title-case
Operation summaries should use Title Case
$.paths.*[get,post,put,patch,delete].summary
warn
tesla-response-200
Operations should define a 200 response
$.paths.*[get,post]