Salesforce Einstein · API Governance Rules
Salesforce Einstein API Rules
Spectral linting rules defining API design standards and conventions for Salesforce Einstein.
9 Rules
error 6
warn 3
Rule Categories
einstein
Rules
error
einstein-operation-id-required
All operations must have an operationId.
$.paths[*][*]
error
einstein-summary-not-empty
All operations must have a summary.
$.paths[*][*]
warn
einstein-tags-required
All operations must have at least one tag.
$.paths[*][*]
error
einstein-response-200-required
All operations must define a 200 success response.
$.paths[*][*].responses
error
einstein-auth-required
All Einstein APIs require bearer token or OAuth2.
$.components.securitySchemes
error
einstein-server-url-defined
API must define at least one server URL.
$
warn
einstein-content-type-json
JSON request bodies must use application/json.
$.paths[*][*].requestBody.content
error
einstein-no-trailing-slash
Paths must not have trailing slashes.
$.paths[*]~
warn
einstein-description-required
API info must include a description.
$.info