Giphy · API Governance Rules
Giphy API Rules
Spectral linting rules defining API design standards and conventions for Giphy.
7 Rules
error 4
warn 3
Rule Categories
giphy
Rules
error
giphy-operation-id-camel-case
GIPHY operationIds must be lowerCamelCase (verb + resource).
$.paths.*[get,post,put,patch,delete].operationId
warn
giphy-operation-summary-title-case
Operation summaries must use Title Case.
$.paths.*[get,post,put,patch,delete].summary
error
giphy-tag-allow-list
All operations must use one of the canonical GIPHY tags.
$.paths.*[get,post,put,patch,delete].tags[*]
error
giphy-api-key-required
Every GIPHY operation must require an api_key parameter or security scheme.
$.paths.*[get,post,put,patch,delete]
error
giphy-versioned-paths
All paths must be versioned under /v1/ or /v2/.
$.paths
warn
giphy-rating-enum
Rating parameters must use the canonical enum (y, g, pg, pg-13, r).
$.paths.*[get,post].parameters[?(@.name=='rating')].schema.enum
warn
giphy-response-envelope
2xx responses should expose a data/meta envelope.
$.paths.*[get,post,put,patch].responses['200','201'].content.application/json.schema