Uniblock · API Governance Rules
Uniblock API Rules
Spectral linting rules defining API design standards and conventions for Uniblock.
8 Rules
error 3
warn 4
info 1
Rule Categories
uniblock
Rules
error
uniblock-operation-ids-required
All operations must have an operationId
$.paths[*][get,post,put,patch,delete,options,head]
warn
uniblock-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
warn
uniblock-tags-required
Operations must have at least one tag
$.paths[*][get,post,put,patch,delete]
warn
uniblock-chain-param-described
Chain parameters must have a description
$.components.parameters[?(@.name == "chain" || @.name == "chainId")]
error
uniblock-api-key-security
API must define API key security scheme
$.components.securitySchemes
warn
uniblock-responses-include-error
Operations should document 401 unauthorized response
$.paths[*][get,post].responses
error
uniblock-servers-required
API must define at least one server
$
info
uniblock-blockchain-address-format
Parameters accepting blockchain addresses should note expected format
$.paths[*][*].parameters[?(@.name == "address" || @.name == "contractAddress")]