{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.github.io/giphy/json-schema/giphy-gif-schema.json",
  "title": "GIPHY GIF",
  "type": "object",
  "description": "Standard GIPHY GIF object returned by most endpoints.",
  "properties": {
    "type": { "type": "string", "enum": ["gif", "sticker", "emoji"] },
    "id": { "type": "string" },
    "slug": { "type": "string" },
    "url": { "type": "string", "format": "uri" },
    "bitly_gif_url": { "type": "string", "format": "uri" },
    "bitly_url": { "type": "string", "format": "uri" },
    "embed_url": { "type": "string", "format": "uri" },
    "username": { "type": "string" },
    "source": { "type": "string" },
    "rating": { "type": "string", "enum": ["g", "pg", "pg-13", "r", "y"] },
    "content_url": { "type": "string" },
    "source_tld": { "type": "string" },
    "source_post_url": { "type": "string", "format": "uri" },
    "import_datetime": { "type": "string", "format": "date-time" },
    "trending_datetime": { "type": "string", "format": "date-time" },
    "create_datetime": { "type": "string", "format": "date-time" },
    "update_datetime": { "type": "string", "format": "date-time" },
    "title": { "type": "string" },
    "alt_text": { "type": "string" },
    "is_low_contrast": { "type": "boolean" },
    "analytics_response_payload": { "type": "string" },
    "user": { "$ref": "giphy-user-schema.json" },
    "images": { "$ref": "giphy-images-schema.json" },
    "analytics": { "$ref": "giphy-analytics-schema.json" }
  },
  "required": ["type", "id", "url"]
}
