SnapLogic · API Governance Rules
SnapLogic API Rules
Spectral linting rules defining API design standards and conventions for SnapLogic.
8 Rules
error 2
warn 4
info 2
Rule Categories
snaplogic
Rules
warn
snaplogic-operation-id-camel-case
Operation IDs must use camelCase naming convention
$.paths[*][*].operationId
error
snaplogic-security-defined
All SnapLogic API operations must define security (JWT or Basic Auth)
$.paths[*][get,post,put,delete,patch]
warn
snaplogic-operation-tag
All operations must have at least one tag for grouping
$.paths[*][get,post,put,delete,patch]
warn
snaplogic-operation-summary
All operations must have a summary in Title Case
$.paths[*][get,post,put,delete,patch]
info
snaplogic-operation-description
All operations should have a detailed description
$.paths[*][get,post,put,delete,patch]
warn
snaplogic-success-response-schema
All successful responses should define a schema
$.paths[*][*].responses['200'].content
error
snaplogic-path-params-defined
All path parameters must be defined in the parameters section
$.paths[*][*].parameters[*][?(@.in == 'path')]
info
snaplogic-server-variables
Server URLs should include org variable for multi-tenant support
$.servers[*].url