Country.io · API Governance Rules
Country.io API Rules
Spectral linting rules defining API design standards and conventions for Country.io.
7 Rules
error 6
warn 1
Rule Categories
country
Rules
error
country-io-info-title
API title must mention Country.io.
$.info.title
warn
country-io-server
Servers must reference https://country.io.
$.servers[*].url
error
country-io-paths-json
All Country.io data paths must end in .json.
$.paths
error
country-io-get-only
Country.io data endpoints must only support GET.
$.paths.*
error
country-io-operation-id
Operations must define an operationId.
$.paths.*.get
error
country-io-tags
Operations must define at least one tag.
$.paths.*.get
error
country-io-200-json-response
Each endpoint must define a 200 application/json response.
$.paths.*.get.responses.200.content