TechRepublic · API Governance Rules
TechRepublic API Rules
Spectral linting rules defining API design standards and conventions for TechRepublic.
12 Rules
error 5
warn 7
Rule Categories
techrepublic
Rules
warn
techrepublic-operation-ids-camel-case
Operation IDs must use camelCase naming convention.
$.paths[*][*].operationId
warn
techrepublic-pagination-parameters
Collection endpoints must support page and per_page query parameters.
$.paths[*].get
error
techrepublic-response-array-for-collections
Collection endpoints must return an array schema.
$.paths[*].get.responses.200.content.application/json.schema
warn
techrepublic-path-ids-in-path
Resource ID path parameters must use {id} naming.
$.paths[*][*].parameters[*]
error
techrepublic-responses-have-descriptions
All responses must have a description.
$.paths[*][*].responses[*]
warn
techrepublic-operations-have-tags
All operations must be tagged.
$.paths[*][*]
error
techrepublic-operations-have-summaries
All operations must have a summary.
$.paths[*][*]
warn
techrepublic-title-case-summaries
Operation summaries must use Title Case.
$.paths[*][*].summary
warn
techrepublic-components-schemas-defined
API must define reusable schemas in components.
$.components
error
techrepublic-no-empty-paths
All paths must have at least one operation defined.
$.paths[*]
warn
techrepublic-info-contact
API info must include a contact.
$.info
error
techrepublic-servers-defined
API must define at least one server.
$