{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "cardFace": {
      "description": "One face of a multi-face card",
      "properties": {
        "colors": {
          "description": "Colors for this face",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "loyalty": {
          "type": "string"
        },
        "manaCost": {
          "description": "Mana cost for this face",
          "type": "string"
        },
        "name": {
          "description": "Face name",
          "type": "string"
        },
        "oracleText": {
          "description": "Oracle text for this face",
          "type": "string"
        },
        "power": {
          "type": "string"
        },
        "toughness": {
          "type": "string"
        },
        "typeLine": {
          "description": "Type line for this face",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "legalities": {
      "description": "Format legality information",
      "properties": {
        "alchemy": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "brawl": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "commander": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "duel": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "future": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "gladiator": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "historic": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "legacy": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "modern": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "oathbreaker": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "oldschool": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "pauper": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "paupercommander": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "penny": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "pioneer": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "predh": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "premodern": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "standard": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "standardbrawl": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "timeless": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        },
        "vintage": {
          "knownValues": [
            "legal",
            "not_legal",
            "banned",
            "suspended"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "A Magic: The Gathering card (oracle data)",
      "key": "any",
      "record": {
        "properties": {
          "cmc": {
            "description": "Converted mana cost / mana value",
            "type": "integer"
          },
          "colorIdentity": {
            "description": "Colors for Commander color identity rules",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "colors": {
            "description": "Colors in the card's mana cost (W, U, B, R, G)",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "createdAt": {
            "description": "When this record was created",
            "format": "datetime",
            "type": "string"
          },
          "faces": {
            "description": "Individual faces for multi-face cards",
            "items": {
              "ref": "#cardFace",
              "type": "ref"
            },
            "type": "array"
          },
          "keywords": {
            "description": "Keyword abilities, e.g. ['Flying', 'Haste']",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "layout": {
            "description": "Card layout type",
            "knownValues": [
              "normal",
              "split",
              "flip",
              "transform",
              "modal_dfc",
              "meld",
              "leveler",
              "class",
              "saga",
              "adventure",
              "mutate",
              "prototype",
              "battle",
              "planar",
              "scheme",
              "vanguard",
              "token",
              "double_faced_token",
              "emblem",
              "augment",
              "host",
              "art_series",
              "reversible_card"
            ],
            "type": "string"
          },
          "legalities": {
            "description": "Format legality status",
            "ref": "#legalities",
            "type": "ref"
          },
          "loyalty": {
            "description": "Starting loyalty (for planeswalkers)",
            "type": "string"
          },
          "manaCost": {
            "description": "Mana cost in MTG notation, e.g. '{2}{U}{U}'",
            "type": "string"
          },
          "name": {
            "description": "Card name (front face name for multi-face cards)",
            "type": "string"
          },
          "oracleText": {
            "description": "Rules text",
            "type": "string"
          },
          "power": {
            "description": "Power (for creatures), can be '*' or other special values",
            "type": "string"
          },
          "scryfallOracleId": {
            "description": "Scryfall oracle_id - shared across all printings",
            "type": "string"
          },
          "toughness": {
            "description": "Toughness (for creatures), can be '*' or other special values",
            "type": "string"
          },
          "typeLine": {
            "description": "Full type line, e.g. 'Legendary Creature — Human Wizard'",
            "type": "string"
          }
        },
        "required": [
          "name",
          "scryfallOracleId",
          "layout"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "cards.openstacks.mtg.card",
  "lexicon": 1
}
