{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/matchitup-in/main/json-schema/matchitup-in-message-schema.json",
  "title": "Message",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/matchitup-in-messages-api-openapi.yml#/components/schemas/Message",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "match_id": {
      "type": "string",
      "title": "Match Id"
    },
    "sender_id": {
      "type": "string",
      "title": "Sender Id"
    },
    "sender_name": {
      "type": "string",
      "title": "Sender Name"
    },
    "content": {
      "type": "string",
      "title": "Content"
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "read_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Read At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "match_id",
    "sender_id",
    "sender_name",
    "content",
    "created_at"
  ]
}