Imgur · API Governance Rules
Imgur API Rules
Spectral linting rules defining API design standards and conventions for Imgur.
10 Rules
error 5
warn 5
Rule Categories
imgur
Rules
error
imgur-server-must-be-api-imgur-com
Imgur API v3 must be served from https://api.imgur.com.
$.servers[*].url
error
imgur-paths-prefixed-with-v3-or-oauth2
All paths must be under /3/ (Imgur v3) or /oauth2/ (auth flow).
$.paths[*]~
warn
imgur-operation-summary-title-case
Operation summaries should be in Title Case.
$.paths[*][get,post,put,delete,patch].summary
error
imgur-operation-must-have-operationId
Every operation must declare an operationId.
$.paths[*][get,post,put,delete,patch]
error
imgur-operation-must-have-tag
Every operation must declare at least one tag.
$.paths[*][get,post,put,delete,patch]
error
imgur-must-define-client-id-or-oauth2
Security schemes must include ClientId (anonymous) or OAuth2.
$.components.securitySchemes
warn
imgur-camelcase-operationId
operationId should be lowerCamelCase.
$.paths[*][get,post,put,delete,patch].operationId
warn
imgur-image-hash-parameter-naming
Image/album/comment hash path parameters should use consistent naming.
$.paths[*][*].parameters[?(@.in=='path')].name
warn
imgur-response-must-document-200
Successful operations must document a 200 response.
$.paths[*][get,post,put,delete,patch].responses
warn
imgur-info-contact-required
info.contact must be present so consumers know where to file issues.
$.info