mightstone.services.mtgjson.models.Deck
- pydantic model mightstone.services.mtgjson.models.Deck
The Deck Data Model describes a complete deck reference.
Show JSON schema
{ "title": "Deck", "description": "The Deck Data Model describes a complete deck reference.", "type": "object", "properties": { "id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "default": null, "title": "Id" }, "code": { "since": "v4.3.0", "title": "Code", "type": "string" }, "fileName": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.3.0", "title": "Filename" }, "name": { "since": "v4.3.0", "title": "Name", "type": "string" }, "releaseDate": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.3.0", "title": "Releasedate" }, "type": { "since": "v4.3.0", "title": "Type", "type": "string" }, "commander": { "anyOf": [ { "items": { "$ref": "#/$defs/CardDeck" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v5.1.0", "title": "Commander" }, "mainBoard": { "items": { "$ref": "#/$defs/CardDeck" }, "since": "v4.3.0", "title": "Mainboard", "type": "array" }, "sideBoard": { "items": { "$ref": "#/$defs/CardDeck" }, "since": "v4.3.0", "title": "Sideboard", "type": "array" } }, "$defs": { "CardDeck": { "properties": { "artist": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Artist" }, "asciiName": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.0.0", "title": "Asciiname" }, "attractionLights": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v5.2.1", "title": "Attractionlights" }, "availability": { "items": { "type": "string" }, "since": "v5.0.0", "title": "Availability", "type": "array" }, "boosterTypes": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v5.2.1", "title": "Boostertypes" }, "borderColor": { "since": "v4.0.0", "title": "Bordercolor", "type": "string" }, "cardParts": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Cardparts" }, "colorIdentity": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Coloridentity" }, "colorIndicator": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v4.0.2", "title": "Colorindicator" }, "colors": { "items": { "type": "string" }, "since": "v4.0.0", "title": "Colors", "type": "array" }, "convertedManaCost": { "deprecated": true, "since": "v4.0.0", "title": "Convertedmanacost", "type": "number" }, "count": { "since": "v4.4.1", "title": "Count", "type": "integer" }, "defense": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.1", "title": "Defense" }, "duelDeck": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.2.0", "title": "Dueldeck" }, "edhrecRank": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "since": "v4.5.0", "title": "Edhrecrank" }, "edhrecSaltiness": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "since": "v5.2.1", "title": "Edhrecsaltiness" }, "faceConvertedManaCost": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "deprecated": true, "since": "v4.1.1", "title": "Faceconvertedmanacost" }, "faceFlavorName": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Faceflavorname" }, "faceManaValue": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Facemanavalue" }, "faceName": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.0.0", "title": "Facename" }, "finishes": { "items": { "type": "string" }, "since": "v5.2.0", "title": "Finishes", "type": "array" }, "flavorName": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.0.0", "title": "Flavorname" }, "flavorText": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Flavortext" }, "foreignData": { "items": { "$ref": "#/$defs/ForeignData" }, "since": "v4.0.0", "title": "Foreigndata", "type": "array" }, "frameEffects": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v4.6.0", "title": "Frameeffects" }, "frameVersion": { "since": "v4.0.0", "title": "Frameversion", "type": "string" }, "hand": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.2.1", "title": "Hand" }, "hasAlternativeDeckLimit": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "since": "v5.0.0", "title": "Hasalternativedecklimit" }, "hasContentWarning": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "since": "v5.0.0", "title": "Hascontentwarning" }, "hasFoil": { "deprecated": true, "since": "v4.0.0", "title": "Hasfoil", "type": "boolean" }, "hasNonFoil": { "deprecated": true, "since": "v4.0.0", "title": "Hasnonfoil", "type": "boolean" }, "identifiers": { "allOf": [ { "$ref": "#/$defs/Identifiers" } ], "since": "v5.0.0" }, "isAlternative": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "since": "v4.2.0", "title": "Isalternative" }, "isFoil": { "since": "v5.0.0", "title": "Isfoil", "type": "boolean" }, "isFullArt": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "since": "v4.4.2", "title": "Isfullart" }, "isFunny": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Isfunny" }, "isOnlineOnly": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "since": "v4.0.1", "title": "Isonlineonly" }, "isOversized": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Isoversized" }, "isPromo": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "since": "v4.4.2", "title": "Ispromo" }, "isRebalanced": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Isrebalanced" }, "isReprint": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "since": "v4.4.2", "title": "Isreprint" }, "isReserved": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "since": "v4.0.1", "title": "Isreserved" }, "isStarter": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "deprecated": true, "since": "v4.0.0", "title": "Isstarter" }, "isStorySpotlight": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "since": "v4.4.2", "title": "Isstoryspotlight" }, "isTextless": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "since": "v4.4.2", "title": "Istextless" }, "isTimeshifted": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "since": "v4.4.1", "title": "Istimeshifted" }, "keywords": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v5.0.0", "title": "Keywords" }, "language": { "since": "v5.2.1", "title": "Language", "type": "string" }, "layout": { "since": "v4.0.0", "title": "Layout", "type": "string" }, "leadershipSkills": { "anyOf": [ { "$ref": "#/$defs/LeadershipSkills" }, { "type": "null" } ], "default": null, "since": "v4.5.1" }, "legalities": { "allOf": [ { "$ref": "#/$defs/Legalities" } ], "since": "v4.0.0" }, "life": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.2.1", "title": "Life" }, "loyalty": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Loyalty" }, "manaCost": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Manacost" }, "manaValue": { "since": "v5.2.0", "title": "Manavalue", "type": "number" }, "name": { "since": "v4.0.0", "title": "Name", "type": "string" }, "number": { "since": "v4.0.0", "title": "Number", "type": "string" }, "originalPrintings": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Originalprintings" }, "originalReleaseDate": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.1.0", "title": "Originalreleasedate" }, "originalText": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Originaltext" }, "originalType": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Originaltype" }, "otherFaceIds": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v4.6.1", "title": "Otherfaceids" }, "power": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Power" }, "printings": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Printings" }, "promoTypes": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v5.0.0", "title": "Promotypes" }, "purchaseUrls": { "allOf": [ { "$ref": "#/$defs/PurchaseUrls" } ], "since": "v4.4.0" }, "rarity": { "since": "v4.0.0", "title": "Rarity", "type": "string" }, "RelatedCards": { "anyOf": [ { "$ref": "#/$defs/RelatedCards" }, { "type": "null" } ], "default": null, "since": "5.2.1" }, "rebalancedPrintings": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Rebalancedprintings" }, "rulings": { "anyOf": [ { "items": { "$ref": "#/$defs/Rulings" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Rulings" }, "securityStamp": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Securitystamp" }, "setCode": { "since": "v5.0.1", "title": "Setcode", "type": "string" }, "side": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.1.0", "title": "Side" }, "signature": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Signature" }, "subsets": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v5.2.1", "title": "Subsets" }, "subtypes": { "items": { "type": "string" }, "since": "v4.0.0", "title": "Subtypes", "type": "array" }, "supertypes": { "items": { "type": "string" }, "since": "v4.0.0", "title": "Supertypes", "type": "array" }, "text": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Text" }, "toughness": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Toughness" }, "type": { "since": "v4.0.0", "title": "Type", "type": "string" }, "types": { "items": { "type": "string" }, "since": "v4.0.0", "title": "Types", "type": "array" }, "uuid": { "format": "uuid", "since": "v4.0.0", "title": "Uuid", "type": "string" }, "variations": { "anyOf": [ { "items": { "format": "uuid", "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v4.1.2", "title": "Variations" }, "watermark": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Watermark" } }, "required": [ "availability", "borderColor", "colors", "convertedManaCost", "count", "finishes", "foreignData", "frameVersion", "hasFoil", "hasNonFoil", "identifiers", "isFoil", "language", "layout", "legalities", "manaValue", "name", "number", "purchaseUrls", "rarity", "setCode", "subtypes", "supertypes", "type", "types", "uuid" ], "title": "CardDeck", "type": "object" }, "ForeignData": { "description": "The Foreign Data Data Model describes a list of properties for various Card Data\nModels in alternate languages.", "properties": { "faceName": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.0.1", "title": "Facename" }, "flavorText": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Flavortext" }, "language": { "since": "v4.0.0", "title": "Language", "type": "string" }, "multiverseId": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Multiverseid" }, "name": { "since": "v4.0.0", "title": "Name", "type": "string" }, "text": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Text" }, "type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Type" } }, "required": [ "language", "name" ], "title": "ForeignData", "type": "object" }, "Identifiers": { "properties": { "cardKingdomEtchedId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Cardkingdometchedid" }, "cardKingdomFoilId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.0.0", "title": "Cardkingdomfoilid" }, "cardKingdomId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.0.0", "title": "Cardkingdomid" }, "cardsphereId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.1", "title": "Cardsphereid" }, "mcmId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.4.0", "title": "Mcmid" }, "mcmMetaId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.4.0", "title": "Mcmmetaid" }, "mtgArenaId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.5.0", "title": "Mtgarenaid" }, "mtgjsonFoilVersionId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.1", "title": "Mtgjsonfoilversionid" }, "mtgjsonNonFoilVersionId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.1", "title": "Mtgjsonnonfoilversionid" }, "mtgoFoilId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.5.0", "title": "Mtgofoilid" }, "mtgoId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.5.0", "title": "Mtgoid" }, "mtgjsonV4Id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.0.0", "title": "Mtgjsonv4Id" }, "multiverseId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Multiverseid" }, "scryfallId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Scryfallid" }, "scryfallOracleId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.3.1", "title": "Scryfalloracleid" }, "scryfallIllustrationId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.3.1", "title": "Scryfallillustrationid" }, "tcgplayerProductId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.2.1", "title": "Tcgplayerproductid" }, "tcgplayerEtchedProductId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Tcgplayeretchedproductid" } }, "title": "Identifiers", "type": "object" }, "LeadershipSkills": { "properties": { "brawl": { "since": "v4.5.1", "title": "Brawl", "type": "boolean" }, "commander": { "since": "v4.5.1", "title": "Commander", "type": "boolean" }, "oathbreaker": { "since": "v4.5.1", "title": "Oathbreaker", "type": "boolean" } }, "required": [ "brawl", "commander", "oathbreaker" ], "title": "LeadershipSkills", "type": "object" }, "Legalities": { "properties": { "brawl": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Brawl" }, "commander": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Commander" }, "duel": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Duel" }, "explorer": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.1", "title": "Explorer" }, "future": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Future" }, "gladiator": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Gladiator" }, "historic": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.1.0", "title": "Historic" }, "historicbrawl": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Historicbrawl" }, "legacy": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Legacy" }, "modern": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Modern" }, "oldschool": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Oldschool" }, "pauper": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Pauper" }, "paupercommander": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Paupercommander" }, "penny": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Penny" }, "pioneer": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.6.0", "title": "Pioneer" }, "predh": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.1", "title": "Predh" }, "premodern": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Premodern" }, "standard": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Standard" }, "vintage": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Vintage" } }, "title": "Legalities", "type": "object" }, "PurchaseUrls": { "properties": { "cardKingdom": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.0.0", "title": "Cardkingdom" }, "cardKingdomEtched": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Cardkingdometched" }, "cardKingdomFoil": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.0.0", "title": "Cardkingdomfoil" }, "cardmarket": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.4.0", "title": "Cardmarket" }, "tcgplayer": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.4.0", "title": "Tcgplayer" }, "tcgplayerEtched": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v5.2.0", "title": "Tcgplayeretched" } }, "title": "PurchaseUrls", "type": "object" }, "RelatedCards": { "properties": { "reverseRelated": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v5.2.1", "title": "Reverserelated" }, "spellbook": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "since": "v5.2.1", "title": "Spellbook" } }, "title": "RelatedCards", "type": "object" }, "Rulings": { "properties": { "date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Date" }, "text": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "since": "v4.0.0", "title": "Text" } }, "title": "Rulings", "type": "object" } }, "required": [ "code", "name", "type", "mainBoard", "sideBoard" ] }
- Fields:
- Validators:
- field code: str [Required]
The set code for the deck.
- Validated by:
enforce_id
- field commander: List[CardDeck] | None = None
The card that is the Commander in this deck. See the Card (Deck) Data Model.
- Validated by:
enforce_id
- field file_name: str | None = None (alias 'fileName')
The file name for the deck. Combines the name and code fields to avoid namespace collisions and are given a delimiter of _. Examples: “SpiritSquadron_VOC”
- Validated by:
enforce_id
- field main_board: List[CardDeck] [Required] (alias 'mainBoard')
The cards in the main-board. See the Card (Deck) Data Model.
- Validated by:
enforce_id
- field name: str [Required]
The name of the deck.
- Validated by:
enforce_id
- field release_date: date | None = None (alias 'releaseDate')
The release date in ISO 8601 format for the set. Returns null if the set was not formally released as a product.
- Validated by:
enforce_id
- field side_board: List[CardDeck] [Required] (alias 'sideBoard')
The cards in the side-board. See the Card (Deck) Data Model.
- Validated by:
enforce_id
- field type: str [Required]
The type of deck. Examples: “Advanced Deck”, “Advanced Pack”, “Archenemy Deck”, “Basic Deck”, “Brawl Deck”
- Validated by:
enforce_id