TIAA · API Governance Rules
TIAA API Rules
Spectral linting rules defining API design standards and conventions for TIAA.
13 Rules
error 5
warn 6
info 2
Rule Categories
tiaa
Rules
warn
tiaa-operation-ids-kebab-case
Operation IDs must use camelCase (TIAA convention)
$.paths[*][*].operationId
warn
tiaa-tags-title-case
All tags must use Title Case
$.tags[*].name
error
tiaa-paths-kebab-case
Path segments must use kebab-case
$.paths[*]~
error
tiaa-security-oauth2-required
All operations must require OAuth2 security
$.paths[*][get,post,put,patch,delete]
warn
tiaa-responses-have-200
GET operations must include a 200 response
$.paths[*].get
warn
tiaa-responses-have-content
200 responses should include a content schema
$.paths[*][*].responses.200
error
tiaa-request-bodies-have-schema
Request bodies must define a JSON schema
$.paths[*][post,put,patch].requestBody.content.application/json
error
tiaa-components-schemas-defined
All $ref references must resolve within components/schemas
$.paths[*][*].responses[*].content[*].schema.$ref
warn
tiaa-sensitive-data-description
Fields handling SSN or PII must have a description
$.components.schemas[*].properties[ssn,socialSecurityNumber,taxId]
info
tiaa-pagination-on-list-operations
List operations should support pagination parameters
$.paths[*].get
error
tiaa-servers-https-only
All server URLs must use HTTPS
$.servers[*].url
warn
tiaa-info-contact-defined
API info must include contact information
$.info
info
tiaa-financial-amount-type
Financial amount fields should use number type with double format
$.components.schemas[*].properties[amount,balance,currentBalance,marketValue,costBasis]