{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trajectory/json-schema/trajectory-artifact-upload-request-schema.json",
  "title": "ArtifactUploadRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trajectory-artifacts-api-openapi.yml#/components/schemas/ArtifactUploadRequest",
  "properties": {
    "media_type": {
      "type": "string",
      "maxLength": 255,
      "pattern": "^[a-z0-9!#$&^_.+-]+/[a-z0-9!#$&^_.+-]+$",
      "title": "Media Type",
      "description": "MIME type of the file, such as image/png."
    },
    "size_bytes": {
      "type": "integer",
      "maximum": 16777216.0,
      "minimum": 0.0,
      "title": "Size Bytes",
      "description": "Exact file size in bytes, at most 16 MiB."
    },
    "md5": {
      "type": "string",
      "pattern": "^[A-Za-z0-9+/]{22}==$",
      "title": "Md5",
      "description": "Base64-encoded MD5 of the file; GCS rejects bytes that do not match."
    }
  },
  "type": "object",
  "required": [
    "media_type",
    "size_bytes",
    "md5"
  ]
}