Rocket Pool · API Governance Rules
Rocket Pool API Rules
Spectral linting rules defining API design standards and conventions for Rocket Pool.
5 Rules
error 3
warn 2
Rule Categories
ethereum
operation
tag
wei
Rules
warn
operation-operationId-camel-case
All operationIds use camelCase
$.paths[*][*].operationId
warn
operation-summary-title-case
Operation summaries are Title Case
$.paths[*][*].summary
error
ethereum-address-pattern
Properties named like an address must use the Ethereum 0x-hex pattern
$..properties[?(@property === 'address' || @property === 'nodeAddress' || @property === 'withdrawalAddress' || @property === 'rplWithdrawalAddress' || @property === 'delegateAddress' || @property === 'contractAddress')]
error
wei-string-amounts
ETH/RPL amount fields are strings of wei, never numbers
$..properties[?(@property === 'nodeDepositBalance' || @property === 'userDepositBalance' || @property === 'rplStake' || @property === 'effectiveRplStake' || @property === 'totalValueLocked' || @property === 'rethSupply')]
error
tag-required
All operations must declare a tag
$.paths[*][*]