{
  "$id": "https://example.com/SaleRoomNoticeUpdated.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SaleRoomNoticeUpdated",
  "description": "An event raised when a published entity got updated.",
  "type": "object",
  "properties": {
    "metadata": {
      "type": "object",
      "properties": {
        "occurredAtUtc": {
          "type": "string",
          "description": "The date and time when event occurred in UTC. Date should be represented in ISO 8601 format e.g 2023-09-08T12:00:00Z"
        },
        "typeName": {
          "type": "string",
          "description": "The name of the event. E.g SaleRoomNoticeUpdated"
        },
        "source": {
          "type": "string",
          "description": "The source of the event like was it genereated by Client using Web or WeChat with the format: applicationIdentifier;V1.0.0"
        },
        "sentAtUtc": {
          "type": "string",
          "description":  "When event was send by the publishers in ISO 8601 "
        }
      },
      "required": [ "occurredAtUtc", "typeName", "sentAtUtc"]
  },
  "data": {
    "type": "object",
      "required": [ "auctionNumber", "lotNumber", "lotSuffix"],
      "properties": {
        "auctionId": {
          "type": "string",
          "description": "Auction Id (Sale id). The value can be null."
        },
        "auctionNumber": {
          "type": "number",
          "description": "Auction number (Sale Number)"
        },
        "lotNumber": {
          "type": "number",
          "description": "Lot number"
        },
        "lotSuffix": {
          "type": "string",
          "description": "lot suffix"
        },
        "saleRoomNotice": {
          "type": "object",
          "required": [ "lng", "description"],
          "properties":{
            "lng": {
              "type": "array",
              "items": ["en","zh-hant","zh-hans","fra","rus"],
              "minItems": 1
            },
            "description": {
              "type": "string",
              "description": "Title for the article in english only for now."
            }
          }
        }
      }
    }
  }
}
