{
  "type": "object",
  "title": "Application Metadata without ID",
  "description": "Metadaten eines Antrags noch ohne ID, zum Anlegen eines neuen Antrags. Nach dem Zuweisen der `application-id` wird das Modell [Application Metadata](metadata.json) verwendet.",
  "x-examples": {
    "example-1": {
      "additionalReferenceInfo": {
        "subject": "Anmeldung eines Gewerbes in Musterstadt",
        "caseId": "DF/8923"
      },
      "contentStructure": {
        "data": {
          "schema": {
            "mimeType": "application/json",
            "schemaSource": "none"
          }
        },
        "docs": [
          {
            "docId": "1",
            "purpose": "form",
            "size": 13046,
            "mimeType": "application/pdf",
            "filename": "test.pdf",
            "description": "Das Antragsformular",
            "lang": {
              "lang": "de",
              "region": "DE"
            },
            "hash": {
              "algorithm": "SHA-256",
              "digest": "bf37d894fdf9aeade63975ed648d49c3e8a7a773923597d2418915f54cd7c3b9"
            }
          }
        ]
      },
      "publicServiceType": {
        "name": "Gewerbeanmeldung",
        "description": "Eine Gewerbeanmeldung ist immer dann notwendig, wenn Sie einen stehenden Gewerbebetrieb beginnen.",
        "leikaId": "99050012104000",
        "otherIdentifiers": [
          {
            "id": "8664844",
            "schemeID": "service.niedersachsen.de",
            "schemeName": "Serviceportal Niedersachsen"
          },
          {
            "id": "354824",
            "schemeID": "buerger.thueringen.de",
            "schemeName": "Zuständigkeitsfinder Thüringen"
          }
        ]
      }
    }
  },
  "properties": {
    "publicServiceType": {
      "$ref": "./public-service-type.json"
    },
    "contentStructure": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "docs"
      ],
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "schema": {
              "$ref": "./schema.json"
            }
          },
          "required": [
            "schema"
          ]
        },
        "docs": {
          "type": "array",
          "items": {
            "$ref": "./document.json"
          }
        }
      }
    },
    "additionalReferenceInfo": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "subject": {
          "type": "string"
        },
        "caseId": {
          "type": "string"
        },
        "applicationDate": {
          "type": "string",
          "format": "date",
          "description": "Antragsdatum"
        }
      }
    }
  },
  "required": [
    "contentStructure"
  ]
}