{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "listItem": {
      "properties": {
        "award": {
          "description": "Optional label or emoji award for this entry",
          "maxLength": 128,
          "type": "string"
        },
        "coverUrl": {
          "format": "uri",
          "type": "string"
        },
        "igdbId": {
          "type": "integer"
        },
        "position": {
          "minimum": 1,
          "type": "integer"
        },
        "title": {
          "maxLength": 256,
          "type": "string"
        }
      },
      "required": [
        "igdbId",
        "title",
        "position"
      ],
      "type": "object"
    },
    "main": {
      "description": "A ranked list of games created by a user",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "items": {
            "items": {
              "ref": "#listItem",
              "type": "ref"
            },
            "type": "array"
          },
          "name": {
            "maxLength": 256,
            "type": "string"
          },
          "numbered": {
            "description": "Whether to display position numbers on items",
            "type": "boolean"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "url": {
            "description": "Public URL to view this list on Crash the Arcade",
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "name",
          "items",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.crashthearcade.list",
  "lexicon": 1
}
