Uniswap · API Governance Rules
Uniswap API Rules
Spectral linting rules defining API design standards and conventions for Uniswap.
33 Rules
error 14
warn 15
info 4
Rule Categories
components
delete
get
info
no
openapi
operation
parameter
paths
post
request
response
schema
security
server
servers
Rules
error
info-title-required
$.info
warn
info-description-required
$.info
error
info-version-required
$.info
error
openapi-version-3
$
error
servers-defined
$
error
servers-https-only
$.servers[*].url
warn
server-description-required
$.servers[*]
warn
paths-no-trailing-slash
$.paths[*]~
error
paths-no-query-strings
$.paths[*]~
warn
paths-kebab-case
$.paths[*]~
error
operation-id-required
$.paths[*][get,post,put,patch,delete,head,options]
warn
operation-id-snake-case
$.paths[*][get,post,put,patch,delete,head,options].operationId
error
operation-summary-required
$.paths[*][get,post,put,patch,delete,head,options]
warn
operation-summary-title-case
$.paths[*][get,post,put,patch,delete,head,options].summary
warn
operation-description-required
$.paths[*][get,post,put,patch,delete,head,options]
warn
operation-tags-required
$.paths[*][get,post,put,patch,delete,head,options]
warn
parameter-description-required
$.paths[*][get,post,put,patch,delete,head,options].parameters[*]
error
parameter-schema-required
$.paths[*][get,post,put,patch,delete,head,options].parameters[*]
warn
request-body-description
$.paths[*][post,put,patch].requestBody
warn
request-body-json-content
$.paths[*][post,put,patch].requestBody.content
error
response-success-required
$.paths[*][get,post,put,patch,delete]
error
response-description-required
$.paths[*][get,post,put,patch,delete].responses[*]
warn
response-401-unauthorized
$.paths[*][post,get]
info
response-429-rate-limit
$.paths[*][post,get]
info
schema-property-camel-case
$.components.schemas[*].properties[*]~
warn
schema-type-defined
$.components.schemas[*]
error
security-schemes-defined
$.components
error
security-api-key-header
$.components.securitySchemes[*][?(@.type=='apiKey')]
error
get-no-request-body
$.paths[*].get
warn
delete-no-request-body
$.paths[*].delete
info
post-should-have-request-body
$.paths[*].post
warn
no-empty-descriptions
$..description
info
components-schemas-defined
$.components