Mediastack · API Governance Rules
Mediastack API Rules
Spectral linting rules defining API design standards and conventions for Mediastack.
9 Rules
error 5
warn 4
Rule Categories
mediastack
Rules
error
mediastack-info-contact
Every Mediastack OpenAPI spec must declare a contact for support routing.
$.info
error
mediastack-server-base-url
Server URL must be the canonical api.mediastack.com base.
$.servers[*].url
error
mediastack-api-key-auth
All paths must be secured with the access_key API key security scheme.
$.paths[*][get,post,put,patch,delete].security
error
mediastack-access-key-parameter
Every operation must accept access_key as a query parameter.
$.paths[*][get].parameters
warn
mediastack-title-case-summary
Operation summaries must use Title Case.
$.paths[*][get,post,put,patch,delete].summary
error
mediastack-tag-allowed
Only News and Sources are valid tags.
$.paths[*][get,post,put,patch,delete].tags[*]
warn
mediastack-pagination-envelope
List responses must wrap results in a pagination + data envelope.
$.paths[*][get].responses[200].content.application/json.schema
warn
mediastack-error-shape
Error responses must use the success/error envelope.
$.components.schemas.Error
warn
mediastack-snake-case-fields
Schema property names use snake_case (e.g. published_at, access_key).
$.components.schemas[*].properties[*]~