{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trajectory/json-schema/trajectory-benchmark-ingestion-allocate-objects-request-schema.json",
  "title": "BenchmarkIngestionAllocateObjectsRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trajectory-benchmark-ingestion-api-openapi.yml#/components/schemas/BenchmarkIngestionAllocateObjectsRequest",
  "properties": {
    "files": {
      "items": {
        "$ref": "#/$defs/BenchmarkIngestionUploadObject"
      },
      "type": "array",
      "maxItems": 5000,
      "minItems": 1,
      "title": "Files",
      "description": "At most 1000 files and 1024 KiB with `put`, or 5000 files and 4096 KiB with `post`."
    },
    "upload_method": {
      "type": "string",
      "enum": [
        "put",
        "post"
      ],
      "title": "Upload Method",
      "description": "`put` returns a signed PUT URL per file. `post` returns one signed form-upload policy for the whole batch; uploads are checked against their declarations when the submission is verified.",
      "default": "put"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "files"
  ],
  "$defs": {
    "BenchmarkIngestionUploadObject": {
      "properties": {
        "path": {
          "type": "string",
          "title": "Path"
        },
        "content_type": {
          "type": "string",
          "title": "Content Type"
        },
        "size_bytes": {
          "type": "integer",
          "title": "Size Bytes"
        },
        "md5": {
          "type": "string",
          "maxLength": 24,
          "pattern": "^[A-Za-z0-9+/]{22}==$",
          "title": "Md5"
        },
        "kind": {
          "type": "string",
          "enum": [
            "artifact",
            "part"
          ],
          "title": "Kind",
          "default": "artifact"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "path",
        "content_type",
        "size_bytes",
        "md5"
      ],
      "title": "BenchmarkIngestionUploadObject"
    }
  }
}