mightstone.services.scryfall.models.ManaCost

pydantic model mightstone.services.scryfall.models.ManaCost

Show JSON schema
{
   "title": "ManaCost",
   "type": "object",
   "properties": {
      "cost": {
         "title": "Cost",
         "type": "string"
      },
      "cmc": {
         "anyOf": [
            {
               "type": "number"
            },
            {
               "type": "string"
            }
         ],
         "title": "Cmc"
      },
      "colors": {
         "items": {
            "examples": [
               "U",
               "W"
            ],
            "pattern": [
               "^[WUBRG]$"
            ],
            "title": "Color",
            "type": "string"
         },
         "title": "Colors",
         "type": "array"
      },
      "colorless": {
         "title": "Colorless",
         "type": "boolean"
      },
      "monocolored": {
         "title": "Monocolored",
         "type": "boolean"
      },
      "multicolored": {
         "title": "Multicolored",
         "type": "boolean"
      }
   },
   "required": [
      "cost",
      "cmc",
      "colors",
      "colorless",
      "monocolored",
      "multicolored"
   ]
}

Fields:
field cmc: Decimal [Required]

The converted mana cost. If you submit Un-set mana symbols, this decimal could include fractional parts.

Constraints:
  • func = <function <lambda> at 0x7fa3e4e97be0>

field colorless: bool [Required]

True if the cost is colorless.

field colors: List[Color] [Required]

The colors of the given cost.

field cost: str [Required]

The normalized cost, with correctly-ordered and wrapped mana symbols.

field monocolored: bool [Required]

True if the cost is monocolored.

field multicolored: bool [Required]

True if the cost is multicolored.