Uniswap · API Governance Rules
Uniswap API Rules
Spectral linting rules defining API design standards and conventions for Uniswap.
43 Rules
error 14
warn 24
info 5
Rule Categories
components
delete
get
info
no
openapi
operation
parameter
path
paths
post
query
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
warn
servers-expected-domain
Server URLs should be on the uniswap.org domain.
$.servers[*].url
warn
path-params-casing
Path parameters should be camelCase (the dominant convention in this API).
$.paths[*].parameters[?(@.in=='path')].name
warn
query-params-casing
Query parameters should be camelCase (the dominant convention in this API).
$.paths[*][get,post,put,patch,delete].parameters[?(@.in=='query')]
warn
schema-names-casing
Component schema names should be PascalCase (the dominant convention in this API).
$.components.schemas
info
schema-properties-casing
Schema properties should be camelCase (the dominant convention in this API).
$.components.schemas[*].properties
warn
operation-documents-400
Operations should document a 400 response (documented on 100% of this API's operations).
$.paths[*][get,post,put,patch,delete].responses
warn
operation-documents-401
Operations should document a 401 response (documented on 92% of this API's operations).
$.paths[*][get,post,put,patch,delete].responses
warn
operation-documents-404
Operations should document a 404 response (documented on 92% of this API's operations).
$.paths[*][get,post,put,patch,delete].responses
warn
operation-documents-429
Operations should document a 429 response (documented on 100% of this API's operations).
$.paths[*][get,post,put,patch,delete].responses
warn
operation-documents-500
Operations should document a 500 response (documented on 100% of this API's operations).
$.paths[*][get,post,put,patch,delete].responses