{
  "type": "object",
  "name": "MessageSegment1",
  "properties": {
    "motif": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string"
        },
        "largeIconUrl": {
          "type": "string"
        },
        "mediumIconUrl": {
          "type": "string"
        },
        "smallIconUrl": {
          "type": "string"
        },
        "svgIconUrl": {
          "type": "['string', 'null']"
        }
      },
      "required": [
        "color",
        "largeIconUrl",
        "mediumIconUrl",
        "smallIconUrl",
        "svgIconUrl"
      ]
    },
    "reference": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "url"
      ]
    },
    "text": {
      "type": "string"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "motif",
    "reference",
    "text",
    "type"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}