Currencylayer · API Governance Rules
Currencylayer API Rules
Spectral linting rules defining API design standards and conventions for Currencylayer.
12 Rules
error 4
warn 8
Rule Categories
currencylayer
Rules
error
currencylayer-operation-id-required
Every operation must have a non-empty operationId.
$.paths[*][get,post,put,patch,delete]
warn
currencylayer-operation-id-camel-case
operationId values must be lowerCamelCase.
$.paths[*][get,post,put,patch,delete].operationId
error
currencylayer-operation-summary-required
Every operation must have a summary.
$.paths[*][get,post,put,patch,delete]
warn
currencylayer-operation-summary-title-case
Operation summaries must use Title Case.
$.paths[*][get,post,put,patch,delete].summary
warn
currencylayer-operation-description-required
Every operation must have a description.
$.paths[*][get,post,put,patch,delete]
warn
currencylayer-operation-tags-required
Every operation must declare at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
currencylayer-currency-code-example-format
Currency code example values (source/currencies/from/to) must be uppercase ISO 4217 codes.
$.paths[*].get.parameters[?(@.name=='source' || @.name=='from' || @.name=='to')].schema.example
warn
currencylayer-date-parameter-format
Date-valued parameters must declare schema.format = 'date'.
$.paths[*].get.parameters[?(@.name=='date' || @.name=='start_date' || @.name=='end_date')].schema
warn
currencylayer-response-success-envelope
Response schemas must include a `success` boolean property.
$.components.schemas[?(@property!='ErrorResponse' && @property!='ChangeEntry')].properties
error
currencylayer-error-envelope
ErrorResponse schema must include success=false and a nested error object with code/type/info.
$.components.schemas.ErrorResponse.properties
error
currencylayer-apikey-security-scheme
ApiKeyAuth security scheme must be defined as a header named 'apikey'.
$.components.securitySchemes.ApiKeyAuth
warn
currencylayer-server-apilayer-required
At least one server must point at api.apilayer.com/currency_data.
$.servers[*].url
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for spectral rules
4 MCP tools reach this
find_rulesBrowse and filter every ruleset in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/currencylayer-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.