Salesforce Automation System · API Governance Rules
Salesforce Automation System API Rules
Spectral linting rules defining API design standards and conventions for Salesforce Automation System.
8 Rules
error 4
warn 4
Rule Categories
salesforce
Rules
error
salesforce-operation-id-required
All operations must have an operationId.
$.paths[*][*]
warn
salesforce-summary-title-case
Operation summaries should use Title Case.
$.paths[*][*].summary
error
salesforce-oauth2-required
Salesforce APIs must declare OAuth2 or Bearer security.
$.components.securitySchemes
error
salesforce-response-200-defined
All operations must define a 200 or 201 response.
$.paths[*][*].responses
warn
salesforce-tags-required
All operations must have at least one tag.
$.paths[*][*]
warn
salesforce-versioned-server
Server URL should include a version identifier.
$.servers[*].url
warn
salesforce-error-responses
Operations should define 401 and 403 error responses.
$.paths[*][*].responses
error
salesforce-content-type-json
Request bodies must use application/json.
$.paths[*][*].requestBody.content