cards.openstacks.mtg.deck

openstacks.cards

Documentation

A Magic: The Gathering deck

main record

A Magic: The Gathering deck

Record Key tid Timestamp-based ID

Properties

commanders array of ref #deckEntry Optional

Commander(s) for Commander format

companions array of ref #deckEntry Optional

Companion(s)

createdAt string datetime Required

When this deck was created

description string Optional

Deck description / primer

maxLength: 5000 bytes
format string Optional

Deck format

Known values: standard, modern, legacy, vintage, pioneer, commander, pauper, brawl, historic, alchemy, oathbreaker, premodern, casual
mainboard array of ref #deckEntry Optional

Main deck cards

maybeboard array of ref #deckEntry Optional

Cards being considered

name string Required

Deck name

maxLength: 256 bytes
sideboard array of ref #deckEntry Optional

Sideboard cards

sourceUrl string uri Optional

Original source URL if imported (e.g., Moxfield link)

updatedAt string datetime Optional

When this deck was last updated

View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "name",
      "createdAt"
    ],
    "properties": {
      "name": {
        "type": "string",
        "maxLength": 256,
        "description": "Deck name"
      },
      "format": {
        "type": "string",
        "description": "Deck format",
        "knownValues": [
          "standard",
          "modern",
          "legacy",
          "vintage",
          "pioneer",
          "commander",
          "pauper",
          "brawl",
          "historic",
          "alchemy",
          "oathbreaker",
          "premodern",
          "casual"
        ]
      },
      "createdAt": {
        "type": "string",
        "format": "datetime",
        "description": "When this deck was created"
      },
      "mainboard": {
        "type": "array",
        "items": {
          "ref": "#deckEntry",
          "type": "ref"
        },
        "description": "Main deck cards"
      },
      "sideboard": {
        "type": "array",
        "items": {
          "ref": "#deckEntry",
          "type": "ref"
        },
        "description": "Sideboard cards"
      },
      "sourceUrl": {
        "type": "string",
        "format": "uri",
        "description": "Original source URL if imported (e.g., Moxfield link)"
      },
      "updatedAt": {
        "type": "string",
        "format": "datetime",
        "description": "When this deck was last updated"
      },
      "commanders": {
        "type": "array",
        "items": {
          "ref": "#deckEntry",
          "type": "ref"
        },
        "description": "Commander(s) for Commander format"
      },
      "companions": {
        "type": "array",
        "items": {
          "ref": "#deckEntry",
          "type": "ref"
        },
        "description": "Companion(s)"
      },
      "maybeboard": {
        "type": "array",
        "items": {
          "ref": "#deckEntry",
          "type": "ref"
        },
        "description": "Cards being considered"
      },
      "description": {
        "type": "string",
        "maxLength": 5000,
        "description": "Deck description / primer"
      }
    }
  },
  "description": "A Magic: The Gathering deck"
}
deckEntry object

A card in a deck with quantity

Properties

card string at-uri Required

AT URI reference to a card record

quantity integer Required

Number of copies

minimum: 1
View raw schema
{
  "type": "object",
  "required": [
    "card",
    "quantity"
  ],
  "properties": {
    "card": {
      "type": "string",
      "format": "at-uri",
      "description": "AT URI reference to a card record"
    },
    "quantity": {
      "type": "integer",
      "minimum": 1,
      "description": "Number of copies"
    }
  },
  "description": "A card in a deck with quantity"
}

Lexicon Garden

@