{
  "title": "Notification of first day of unemployment",
  "type": "object",
  "properties": {
    "DateDeclaration": {
      "type": "string",
      "minLength": 8,
      "maxLength": 8,
      "pattern": "^[0-9]*$"
    },
    "TypeOfUnEmployment": {
      "type": "string",
      "enum": [
        "BadWeather",
        "EconomicReason",
        "TechnicalDisorder"
      ]
    },
    "Email": {
      "type": "string",
      "minLength": 0,
      "maxLength": 255
    },
    "SerialNumber": {
      "type": "integer"
    },
    "Comment": {
      "type": "string",
      "minLength": 0,
      "maxLength": 200
    },
    "AddressDetails": {
      "type": "string",
      "minLength": 0,
      "maxLength": 1000
    },
    "ComplicationsDescription": {
      "type": "string",
      "minLength": 0,
      "maxLength": 180
    },
    "YardStreet": {
      "type": "string",
      "minLength": 0,
      "maxLength": 35
    },
    "Yardhousenumber": {
      "type": "string",
      "minLength": 0,
      "maxLength": 10
    },
    "yardPostbox": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4
    },
    "YardZIPcode": {
      "type": "string",
      "minLength": 0,
      "maxLength": 9
    },
    "YardCity": {
      "type": "string",
      "minLength": 0,
      "maxLength": 40
    },
    "YardCountry": {
      "type": "string",
      "default": "00150",
      "minLength": 5,
      "maxLength": 5,
      "pattern": "^[0-9]*$"
    },
    "NatureBadWeather": {
      "type": "string",
      "minLength": 0,
      "maxLength": 40
    },
    "NatureWork": {
      "type": "string",
      "minLength": 0,
      "maxLength": 80
    },
    "ReasonImpossible": {
      "type": "string",
      "minLength": 0,
      "maxLength": 80
    },
    "Status": {
      "type": "string",
      "enum": [
        "InProgress",
        "OK",
        "Error"
      ]
    },
    "TicketNumber": {
      "type": "string",
      "minLength": 0,
      "maxLength": 20
    },
    "Error": {
      "type": "string",
      "minLength": 0,
      "maxLength": 255
    },
    "ListOfWorkers": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    }
  },
  "required": [
    "DateDeclaration",
    "TypeOfUnEmployment",
    "Email",
    "ListOfWorkers"
  ]
}