{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daily-dev/json-schema/daily-dev-def-7-schema.json",
  "title": "Notification",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daily-dev-notifications-api-openapi.yml#/components/schemas/def-7",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "readAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "icon": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "referenceId": {
      "type": "string"
    },
    "targetUrl": {
      "type": "string",
      "format": "uri"
    },
    "numTotalAvatars": {
      "type": [
        "integer",
        "null"
      ]
    },
    "avatars": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/def-5"
      }
    },
    "attachments": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/def-6"
      }
    }
  },
  "$defs": {
    "def-5": {
      "type": "object",
      "properties": {
        "referenceId": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "image": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": "string"
        },
        "targetUrl": {
          "type": "string",
          "format": "uri"
        }
      },
      "title": "NotificationAvatar"
    },
    "def-6": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "image": {
          "type": [
            "string",
            "null"
          ]
        },
        "title": {
          "type": "string"
        }
      },
      "title": "NotificationAttachment"
    }
  }
}