Tango · API Governance Rules
Tango API Rules
Spectral linting rules defining API design standards and conventions for Tango.
10 Rules
error 1
warn 8
Rule Categories
tango
Rules
warn
tango-operation-ids-camel-case
All operationIds must use camelCase
$.paths[*][*].operationId
warn
tango-paths-kebab-case
All path segments must use kebab-case or be a path parameter
$.paths[*]~
warn
tango-responses-have-content-type
2xx responses must define a content type
$.paths[*][*].responses[?(@property >= 200 && @property < 300)]
warn
tango-parameters-have-descriptions
All parameters must have descriptions
$.paths[*][*].parameters[*]
warn
tango-schemas-have-descriptions
All schema components must have descriptions
$.components.schemas[*]
error
tango-auth-required
All operations must declare security requirements
$.paths[*][*]
warn
tango-operations-have-tags
All operations must have at least one tag
$.paths[*][*]
hint
tango-response-schema-refs
Response schemas should use $ref to reusable components
$.paths[*][*].responses[*].content[*].schema
warn
tango-customer-identifier-path-param
Customer identifier path parameters must be named customerIdentifier
$.paths[*][*].parameters[?(@.in === 'path' && @.name === 'customerId')]
warn
tango-delete-returns-204
DELETE operations should return 204 No Content
$.paths[*].delete.responses