{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/uploads-sh/json-schema/uploads-sh-gallery-item-schema.json",
  "title": "GalleryItem",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/uploads-sh-openapi.json#/components/schemas/GalleryItem",
  "type": "object",
  "required": [
    "id",
    "objectKey",
    "position",
    "caption",
    "altText",
    "createdAt",
    "status",
    "url",
    "embedUrl",
    "pageUrl",
    "contentType",
    "size",
    "uploaded",
    "modified"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "objectKey": {
      "type": "string"
    },
    "position": {
      "type": "integer",
      "minimum": 0
    },
    "caption": {
      "type": [
        "string",
        "null"
      ]
    },
    "altText": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "status": {
      "type": "string",
      "enum": [
        "available",
        "missing",
        "withheld"
      ]
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "embedUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "pageUrl": {
      "type": "string",
      "format": "uri"
    },
    "contentType": {
      "type": [
        "string",
        "null"
      ]
    },
    "size": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "uploaded": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "modified": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "posterUrl": {
      "type": "string",
      "format": "uri"
    },
    "videoDimensions": {
      "$ref": "#/$defs/VideoDimensions"
    },
    "metadata": {
      "$ref": "#/$defs/Metadata"
    }
  },
  "$defs": {
    "Metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "VideoDimensions": {
      "type": "object",
      "required": [
        "width",
        "height"
      ],
      "properties": {
        "width": {
          "type": "integer",
          "minimum": 1
        },
        "height": {
          "type": "integer",
          "minimum": 1
        }
      }
    }
  }
}