Tufin · API Governance Rules
Tufin API Rules
Spectral linting rules defining API design standards and conventions for Tufin.
11 Rules
error 2
warn 8
info 1
Rule Categories
tufin
Rules
warn
tufin-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
tufin-operation-id-required
All operations must have an operationId
$.paths[*][get,post,put,delete,patch]
warn
tufin-basic-auth-required
Tufin SecureTrack uses HTTP Basic Authentication for all API endpoints. All operations must declare the basicAuth security requirement.
$.paths[*][get,post,put,delete,patch]
warn
tufin-200-response-defined
All operations should define a 200 success response
$.paths[*][get,post,put].responses
error
tufin-tag-required
All operations must be tagged for documentation organization
$.paths[*][get,post,put,delete,patch]
warn
tufin-description-required
All operations should have a description
$.paths[*][get,post,put,delete,patch]
warn
tufin-integer-id-path-params
Tufin uses integer-based IDs for deviceId, ruleId, ticketId, and taskId. These path parameters must use integer type.
$.paths[*][*].parameters[?(@.in == 'path' && @.name =~ /Id$/)]
info
tufin-xml-json-response
Tufin SecureTrack API supports both XML and JSON responses. Operations should document the response content type.
$.paths[*][get,post,put].responses.200
warn
tufin-parameter-description
All parameters should have a description
$.paths[*][*].parameters[*]
warn
tufin-components-schemas
API must define reusable schemas in components/schemas
$.components
warn
tufin-no-trailing-slashes
Paths must not have trailing slashes
$.paths