{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "uuid": {
      "type": "string",
      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
    },
    "message_name": {
      "type": "string",
      "pattern": "^updateFlopyPackages$"
    },
    "metadata": {
      "type": "object"
    },
    "payload": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
        },
        "packages": {
          "type": "object",
          "required": [
            "version",
            "author",
            "project",
            "model_id",
            "mf",
            "mt"
          ],
          "properties": {
            "version": {
              "type": "string"
            },
            "author": {
              "type": "string"
            },
            "project": {
              "type": "string"
            },
            "model_id": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "mf": {},
            "mt": {}
          }
        }
      },
      "required": [
        "id",
        "packages"
      ]
    }
  },
  "required": [
    "uuid",
    "message_name",
    "metadata",
    "payload"
  ]
}
