{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dnsdoctor-dev/json-schema/dnsdoctor-dev-bulk-reports-in-schema.json",
  "title": "BulkReportsIn",
  "description": "2-20 reports, bounded at the model so an oversize body is a 422 at parse.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dnsdoctor-dev-tools-api-openapi.yml#/components/schemas/BulkReportsIn",
  "properties": {
    "reports": {
      "items": {
        "$ref": "#/$defs/BulkReportIn"
      },
      "type": "array",
      "maxItems": 20,
      "minItems": 2,
      "title": "Reports"
    }
  },
  "type": "object",
  "required": [
    "reports"
  ],
  "$defs": {
    "BulkReportIn": {
      "properties": {
        "content_base64": {
          "type": "string",
          "maxLength": 2870811,
          "title": "Content Base64"
        },
        "filename": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 255
            },
            {
              "type": "null"
            }
          ],
          "title": "Filename"
        }
      },
      "type": "object",
      "required": [
        "content_base64"
      ],
      "title": "BulkReportIn",
      "description": "One report: base64 of the raw XML / .gz / .zip, plus an optional name.\n\nThe filename is a parser hint (parsedmarc reads the extension) and is echoed\non the row so a caller can match rows to files."
    }
  }
}