ankr · API Governance Rules
ankr API Rules
Spectral linting rules defining API design standards and conventions for ankr.
5 Rules
error 1
warn 3
Rule Categories
ankr
Rules
warn
ankr-operation-summary-title-case
Ankr operation summaries must use Title Case and begin with "Ankr ".
$.paths.*[get,post,put,delete,patch].summary
warn
ankr-jsonrpc-envelope-method-naming
Advanced API operationIds mirror the underlying JSON-RPC method (ankr_xxx) in camelCase.
$.paths.*[post].operationId
warn
ankr-server-uses-rpc-base
At least one server entry should be under rpc.ankr.com or api.staking.ankr.com.
$.servers[*].url
error
ankr-tags-required
Every operation must declare a tag (NFT, Token, Query, EVM, Metrics, Ratio, Validators, Tasks).
$.paths.*[get,post,put,delete,patch]
hint
ankr-multichain-blockchain-enum
When a request schema references a `blockchain` field, it should use the Ankr chain enum.
$.components.schemas.AnkrBlockchain.enum