{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vladahealth-com/json-schema/vladahealth-com-upload-request-schema.json",
  "title": "UploadRequest",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vladahealth-com-openapi.json#/components/schemas/UploadRequest",
  "properties": {
    "session_id": {
      "type": "string",
      "title": "Session Id"
    },
    "csv_text": {
      "type": "string",
      "title": "Csv Text",
      "description": "the de-identified claims file as CSV text (header row + rows)"
    },
    "source_label": {
      "type": "string",
      "title": "Source Label",
      "description": "a label for this file, e.g. 'TPA Q3 2026'",
      "default": "uploaded claims"
    },
    "data_vintage": {
      "type": "string",
      "title": "Data Vintage",
      "description": "the data version this batch represents",
      "default": "customer-upload"
    },
    "mapping": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mapping",
      "description": "optional {source header -> ClaimLine field} renames, applied before the gate"
    }
  },
  "type": "object",
  "required": [
    "session_id",
    "csv_text"
  ]
}