{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fitko/json-schema/fitko-attachment-limits-schema.json",
  "title": "attachment-limits",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fitko-submission-api-openapi.yml#/components/schemas/attachment-limits",
  "type": "object",
  "required": [
    "attachments"
  ],
  "properties": {
    "attachments": {
      "type": "object",
      "required": [
        "platform",
        "receive",
        "send",
        "applicable"
      ],
      "properties": {
        "platform": {
          "type": "object",
          "description": "Fundamentales Limit, das unabhängig von den Beteiligten ist.",
          "required": [
            "maxNumber",
            "maxSizeIndividualBytes",
            "maxSizeAggregateBytes"
          ],
          "properties": {
            "maxNumber": {
              "type": "integer",
              "minimum": 0,
              "description": "Maximale Anzahl an Attachments pro Einreichung oder Antwort"
            },
            "maxSizeIndividualBytes": {
              "type": "integer",
              "minimum": 1,
              "description": "Maximale Dateigröße (in Bytes) eines einzelnen Attachments"
            },
            "maxSizeAggregateBytes": {
              "type": "integer",
              "minimum": 1,
              "description": "Maximale kumulierte Dateigröße (in Bytes) aller Attachments einer Einreichung oder Antwort"
            }
          }
        },
        "receive": {
          "type": "object",
          "description": "Empfangs-Limit der toDestinationId.",
          "required": [
            "maxNumber",
            "maxSizeIndividualBytes",
            "maxSizeAggregateBytes"
          ],
          "properties": {
            "maxNumber": {
              "type": "integer",
              "minimum": 0,
              "description": "Maximale Anzahl an Attachments pro Einreichung oder Antwort"
            },
            "maxSizeIndividualBytes": {
              "type": "integer",
              "minimum": 1,
              "description": "Maximale Dateigröße (in Bytes) eines einzelnen Attachments"
            },
            "maxSizeAggregateBytes": {
              "type": "integer",
              "minimum": 1,
              "description": "Maximale kumulierte Dateigröße (in Bytes) aller Attachments einer Einreichung oder Antwort"
            }
          }
        },
        "send": {
          "type": "object",
          "description": "Sende-Limit der fromDestinationId.",
          "required": [
            "maxNumber",
            "maxSizeIndividualBytes",
            "maxSizeAggregateBytes"
          ],
          "properties": {
            "maxNumber": {
              "type": "integer",
              "minimum": 0,
              "description": "Maximale Anzahl an Attachments pro Einreichung oder Antwort"
            },
            "maxSizeIndividualBytes": {
              "type": "integer",
              "minimum": 1,
              "description": "Maximale Dateigröße (in Bytes) eines einzelnen Attachments"
            },
            "maxSizeAggregateBytes": {
              "type": "integer",
              "minimum": 1,
              "description": "Maximale kumulierte Dateigröße (in Bytes) aller Attachments einer Einreichung oder Antwort"
            }
          }
        },
        "applicable": {
          "type": "object",
          "description": "Tatsächlich geltendes Limit (das Minimum aus den anderen Werten).",
          "required": [
            "maxNumber",
            "maxSizeIndividualBytes",
            "maxSizeAggregateBytes"
          ],
          "properties": {
            "maxNumber": {
              "type": "integer",
              "minimum": 0,
              "description": "Maximale Anzahl an Attachments pro Einreichung oder Antwort"
            },
            "maxSizeIndividualBytes": {
              "type": "integer",
              "minimum": 1,
              "description": "Maximale Dateigröße (in Bytes) eines einzelnen Attachments"
            },
            "maxSizeAggregateBytes": {
              "type": "integer",
              "minimum": 1,
              "description": "Maximale kumulierte Dateigröße (in Bytes) aller Attachments einer Einreichung oder Antwort"
            }
          }
        }
      }
    }
  }
}