{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/Conversation/v1/schema.json",
  "title": "Conversation",
  "description": "Objects Grid Conversation Object. A thread of Messages between a business and its customers: a buyer asking about a listing, a guest writing to the hotel. A private record: it has no JSON-LD document. Modeled in compliance with https://schema.org/Conversation.",
  "type": "object",
  "properties": {
    "at_context": {
      "description": "Schema context",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "https://schema.org"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "at_type": {
      "description": "The object type",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "Conversation"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "at_id": {
      "description": "This Conversation's ObjectsGrid URL, https://apis.objectsgrid.com/<path>/<id>: its JSON-LD @id, which References point to. Set by the service.",
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "readOnly": true
    },
    "id": {
      "description": "The unique identifier for Conversation. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "minLength": 0,
      "maxLength": 50,
      "readOnly": true
    },
    "identifier": {
      "description": "The unique identifier for Conversation. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "minLength": 0,
      "maxLength": 50,
      "readOnly": true
    },
    "url": {
      "description": "This Conversation URL. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "minLength": 1,
      "readOnly": true
    },
    "name": {
      "description": "The subject",
      "type": "array",
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      },
      "minItems": 1
    },
    "about": {
      "description": "What it is about",
      "x-objectsgrid-rangeIncludes": [
        "Accommodation",
        "Brand",
        "Course",
        "Event",
        "Menu",
        "MenuItem",
        "Offer",
        "Organization",
        "Place",
        "Product",
        "ProductGroup",
        "ProductModel",
        "RealEstateListing",
        "Service",
        "Order",
        "Reservation",
        "Invoice"
      ],
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/Reference/v1/schema.json"
        },
        {
          "type": "null"
        }
      ]
    },
    "participant": {
      "x-objectsgrid-erasure": "keep",
      "x-objectsgrid-version": "pinned",
      "description": "Who takes part: URLs of Persons and Organizations, stored as <url>?version=<objectVersion>",
      "x-objectsgrid-rangeIncludes": [
        "Person",
        "Organization"
      ],
      "type": [
        "array",
        "null"
      ],
      "maxItems": 20,
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/Reference/v1/schema.json"
      }
    },
    "dateCreated": {
      "description": "When it started",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "status": {
      "description": "Whether it is open or closed. ObjectsGrid's, beyond Schema.org: Schema.org has no status for a conversation; left out of JSON-LD documents.",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "Open",
            "Closed"
          ]
        },
        {
          "type": "null"
        }
      ],
      "x-objectsgrid-extension": true
    },
    "hasPart": {
      "description": "Its Messages. Computed, read-only: the objects whose Message.isPartOf points to this object, listed from that type; never stored or written.",
      "x-objectsgrid-inverseOf": "Message.isPartOf",
      "readOnly": true
    },
    "tags": {
      "description": "Tags an ABAC policy can decide on. A name may repeat; the same name and value appear once. Every stored object has them: created empty when not sent, kept by a replacement (PUT) that does not mention them, unchanged by a patch that does not mention them, cleared by null or [].",
      "type": "array",
      "default": [],
      "uniqueItems": true,
      "maxItems": 50,
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/Tag/v1/schema.json"
      }
    },
    "meta": {
      "description": "System-managed metadata for the object (version, audit fields). Assigned by the server.",
      "$ref": "https://objectsgrid.com/.well-known/objects-catalog/ObjectMeta/v1/schema.json",
      "readOnly": true
    }
  },
  "required": [
    "name"
  ],
  "x-objectsgrid-jsonLd": false
}
