TEGNA · API Governance Rules
TEGNA API Rules
Spectral linting rules defining API design standards and conventions for TEGNA.
10 Rules
error 3
warn 6
Rule Categories
tegna
Rules
warn
tegna-operation-ids-camel-case
Operation IDs must use camelCase naming convention.
$.paths[*][*].operationId
error
tegna-operations-have-summaries
All operations must have a summary.
$.paths[*][*]
warn
tegna-title-case-summaries
Operation summaries must use Title Case.
$.paths[*][*].summary
warn
tegna-operations-have-tags
All operations must be tagged.
$.paths[*][*]
error
tegna-responses-have-descriptions
All responses must have descriptions.
$.paths[*][*].responses[*]
warn
tegna-security-defined
All operations must define security requirements.
$.paths[*][*]
error
tegna-servers-defined
API must define at least one server.
$
warn
tegna-components-schemas
API must define reusable schemas.
$.components
hint
tegna-campaign-status-enum
Campaign status fields should use the standard enum values.
$.components.schemas.Campaign.properties.status
warn
tegna-date-formats
Date fields should use ISO 8601 format.
$.components.schemas[*].properties[?(@.type === 'string')]