The News API · API Governance Rules
The News API API Rules
Spectral linting rules defining API design standards and conventions for The News API.
9 Rules
error 3
warn 4
Rule Categories
news
Rules
error
news-api-token-required
All News API operations must include the api_token query parameter.
$.paths.*.*.parameters
warn
news-api-summary-title-case
Operation summaries must use Title Case.
$.paths.*.*.summary
error
news-api-summary-exists
All operations must have a summary.
$.paths.*.*
warn
news-api-tags-exist
All operations must have at least one tag.
$.paths.*.*
error
news-api-response-200
All operations must define a 200 response.
$.paths.*.*.responses
warn
news-api-server-https
Server URLs should use HTTPS.
$.servers[*].url
warn
news-api-parameter-descriptions
All parameters should include a description.
$.paths.*.*.parameters[*]
hint
news-api-response-401
Operations should define a 401 Unauthorized response.
$.paths.*.*.responses
hint
news-api-operation-id-camel-case
operationId should use camelCase.
$.paths.*.*.operationId