{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/ItemList/v1/schema.json",
  "title": "ItemList",
  "description": "Objects Grid ItemList Object. An ordered list of objects: a shopper's wishlist, staff picks, a 'Top 10' page, a comparison. Its entries (itemListElement) reference any catalog object; numberOfItems is set by the service. A wishlist is an ItemList tagged listType=wishlist, with the shopper as author. Modeled in compliance with https://schema.org/ItemList.",
  "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": [
            "ItemList"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "at_id": {
      "description": "This ItemList'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 ItemList. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "minLength": 0,
      "maxLength": 50,
      "readOnly": true
    },
    "identifier": {
      "description": "The unique identifier for ItemList. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "minLength": 0,
      "maxLength": 50,
      "readOnly": true
    },
    "url": {
      "description": "This ItemList URL. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "minLength": 1,
      "readOnly": true
    },
    "name": {
      "description": "The ItemList name",
      "type": "array",
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      },
      "minItems": 1
    },
    "description": {
      "description": "The ItemList description",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      }
    },
    "image": {
      "description": "Image URLs",
      "type": [
        "array",
        "null"
      ],
      "maxItems": 20,
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "itemListOrder": {
      "description": "How the entries are ordered",
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/ItemListOrderType/v1/schema.json"
        },
        {
          "type": "null"
        }
      ]
    },
    "itemListElement": {
      "description": "Its entries",
      "type": [
        "array",
        "null"
      ],
      "maxItems": 1000,
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/ListItem/v1/schema.json"
      }
    },
    "numberOfItems": {
      "description": "How many entries it has. Set by the service.",
      "type": [
        "integer",
        "null"
      ],
      "readOnly": true
    },
    "author": {
      "x-objectsgrid-erasure": "keep",
      "x-objectsgrid-version": "pinned",
      "description": "Whose list it is: a shopper's Person for a wishlist, the business's Organization for an editorial list; the URL of a Person or Organization, stored as <url>?version=<objectVersion>",
      "x-objectsgrid-rangeIncludes": [
        "Person",
        "Organization"
      ],
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/Reference/v1/schema.json"
        },
        {
          "type": "null"
        }
      ]
    },
    "dateCreated": {
      "description": "When it was created",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "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"
  ]
}
