mightstone.services.edhrec.models.PagePartners

pydantic model mightstone.services.edhrec.models.PagePartners

Show JSON schema
{
   "title": "PagePartners",
   "type": "object",
   "properties": {
      "id": {
         "anyOf": [
            {
               "format": "uuid",
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Id"
      },
      "header": {
         "title": "Header",
         "type": "string"
      },
      "description": {
         "title": "Description",
         "type": "string"
      },
      "container": {
         "$ref": "#/$defs/Container"
      },
      "cardlist": {
         "default": [],
         "items": {
            "anyOf": [
               {
                  "$ref": "#/$defs/CollectionItemCompleteCard"
               },
               {
                  "$ref": "#/$defs/CollectionItemCardSynergy"
               },
               {
                  "$ref": "#/$defs/CollectionItemCardIncluded"
               },
               {
                  "$ref": "#/$defs/CollectionItemCard"
               },
               {
                  "$ref": "#/$defs/CollectionItem"
               }
            ]
         },
         "title": "Cardlist",
         "type": "array"
      }
   },
   "$defs": {
      "Collection": {
         "properties": {
            "header": {
               "title": "Header",
               "type": "string"
            },
            "tag": {
               "title": "Tag",
               "type": "string"
            },
            "cardviews": {
               "items": {
                  "anyOf": [
                     {
                        "$ref": "#/$defs/CollectionItemCompleteCard"
                     },
                     {
                        "$ref": "#/$defs/CollectionItemCardSynergy"
                     },
                     {
                        "$ref": "#/$defs/CollectionItemCardIncluded"
                     },
                     {
                        "$ref": "#/$defs/CollectionItemCard"
                     },
                     {
                        "$ref": "#/$defs/CollectionItem"
                     }
                  ]
               },
               "title": "Cardviews",
               "type": "array"
            },
            "href": {
               "anyOf": [
                  {
                     "format": "path",
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Href"
            },
            "more": {
               "anyOf": [
                  {
                     "format": "path",
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "More"
            }
         },
         "required": [
            "header",
            "tag",
            "cardviews"
         ],
         "title": "Collection",
         "type": "object"
      },
      "CollectionItem": {
         "description": "Representation of a basic list item",
         "properties": {
            "name": {
               "title": "Name",
               "type": "string"
            },
            "sanitized": {
               "title": "Sanitized",
               "type": "string"
            },
            "sanitized_wo": {
               "title": "Sanitized Wo",
               "type": "string"
            },
            "url": {
               "anyOf": [
                  {
                     "format": "path",
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Url"
            }
         },
         "required": [
            "name",
            "sanitized",
            "sanitized_wo"
         ],
         "title": "CollectionItem",
         "type": "object"
      },
      "CollectionItemCard": {
         "properties": {
            "name": {
               "title": "Name",
               "type": "string"
            },
            "sanitized": {
               "title": "Sanitized",
               "type": "string"
            },
            "sanitized_wo": {
               "title": "Sanitized Wo",
               "type": "string"
            },
            "url": {
               "anyOf": [
                  {
                     "format": "path",
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Url"
            },
            "num_decks": {
               "title": "Num Decks",
               "type": "integer"
            },
            "cards": {
               "anyOf": [
                  {
                     "items": {
                        "$ref": "#/$defs/EdhRecCardRef"
                     },
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Cards"
            },
            "is_partner": {
               "anyOf": [
                  {
                     "type": "boolean"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": false,
               "title": "Is Partner"
            },
            "names": {
               "anyOf": [
                  {
                     "items": {
                        "type": "string"
                     },
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Names"
            }
         },
         "required": [
            "name",
            "sanitized",
            "sanitized_wo",
            "num_decks"
         ],
         "title": "CollectionItemCard",
         "type": "object"
      },
      "CollectionItemCardIncluded": {
         "properties": {
            "name": {
               "title": "Name",
               "type": "string"
            },
            "sanitized": {
               "title": "Sanitized",
               "type": "string"
            },
            "sanitized_wo": {
               "title": "Sanitized Wo",
               "type": "string"
            },
            "url": {
               "anyOf": [
                  {
                     "format": "path",
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Url"
            },
            "num_decks": {
               "title": "Num Decks",
               "type": "integer"
            },
            "cards": {
               "anyOf": [
                  {
                     "items": {
                        "$ref": "#/$defs/EdhRecCardRef"
                     },
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Cards"
            },
            "is_partner": {
               "anyOf": [
                  {
                     "type": "boolean"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": false,
               "title": "Is Partner"
            },
            "names": {
               "anyOf": [
                  {
                     "items": {
                        "type": "string"
                     },
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Names"
            },
            "label": {
               "title": "Label",
               "type": "string"
            },
            "inclusion": {
               "title": "Inclusion",
               "type": "integer"
            }
         },
         "required": [
            "name",
            "sanitized",
            "sanitized_wo",
            "num_decks",
            "label",
            "inclusion"
         ],
         "title": "CollectionItemCardIncluded",
         "type": "object"
      },
      "CollectionItemCardSynergy": {
         "properties": {
            "name": {
               "title": "Name",
               "type": "string"
            },
            "sanitized": {
               "title": "Sanitized",
               "type": "string"
            },
            "sanitized_wo": {
               "title": "Sanitized Wo",
               "type": "string"
            },
            "url": {
               "anyOf": [
                  {
                     "format": "path",
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Url"
            },
            "num_decks": {
               "title": "Num Decks",
               "type": "integer"
            },
            "cards": {
               "anyOf": [
                  {
                     "items": {
                        "$ref": "#/$defs/EdhRecCardRef"
                     },
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Cards"
            },
            "is_partner": {
               "anyOf": [
                  {
                     "type": "boolean"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": false,
               "title": "Is Partner"
            },
            "names": {
               "anyOf": [
                  {
                     "items": {
                        "type": "string"
                     },
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Names"
            },
            "label": {
               "title": "Label",
               "type": "string"
            },
            "inclusion": {
               "title": "Inclusion",
               "type": "integer"
            },
            "synergy": {
               "title": "Synergy",
               "type": "number"
            },
            "potential_decks": {
               "title": "Potential Decks",
               "type": "integer"
            }
         },
         "required": [
            "name",
            "sanitized",
            "sanitized_wo",
            "num_decks",
            "label",
            "inclusion",
            "synergy",
            "potential_decks"
         ],
         "title": "CollectionItemCardSynergy",
         "type": "object"
      },
      "CollectionItemCompleteCard": {
         "properties": {
            "name": {
               "title": "Name",
               "type": "string"
            },
            "sanitized": {
               "title": "Sanitized",
               "type": "string"
            },
            "sanitized_wo": {
               "title": "Sanitized Wo",
               "type": "string"
            },
            "url": {
               "anyOf": [
                  {
                     "format": "path",
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Url"
            },
            "cmc": {
               "title": "Cmc",
               "type": "integer"
            },
            "image_uris": {
               "default": [],
               "items": {
                  "$ref": "#/$defs/ImageUri"
               },
               "title": "Image Uris",
               "type": "array"
            },
            "layout": {
               "title": "Layout",
               "type": "string"
            },
            "prices": {
               "anyOf": [
                  {
                     "additionalProperties": {
                        "anyOf": [
                           {
                              "$ref": "#/$defs/PriceUrl"
                           },
                           {
                              "$ref": "#/$defs/PriceSlug"
                           },
                           {
                              "type": "null"
                           }
                        ]
                     },
                     "type": "object"
                  },
                  {
                     "type": "null"
                  }
               ],
               "title": "Prices"
            },
            "primary_type": {
               "title": "Primary Type",
               "type": "string"
            },
            "rarity": {
               "title": "Rarity",
               "type": "string"
            },
            "salt": {
               "title": "Salt",
               "type": "number"
            },
            "type": {
               "title": "Type",
               "type": "string"
            },
            "combos": {
               "title": "Combos",
               "type": "boolean"
            },
            "legal_commander": {
               "anyOf": [
                  {
                     "type": "boolean"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": false,
               "title": "Legal Commander"
            },
            "aetherhub_uri": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Aetherhub Uri"
            },
            "archidekt_uri": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Archidekt Uri"
            },
            "deckstats_uri": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Deckstats Uri"
            },
            "moxfield_uri": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Moxfield Uri"
            },
            "mtggoldfish_uri": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Mtggoldfish Uri"
            },
            "scryfall_uri": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Scryfall Uri"
            },
            "spellbook_uri": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Spellbook Uri"
            }
         },
         "required": [
            "name",
            "sanitized",
            "sanitized_wo",
            "cmc",
            "layout",
            "prices",
            "primary_type",
            "rarity",
            "salt",
            "type",
            "combos"
         ],
         "title": "CollectionItemCompleteCard",
         "type": "object"
      },
      "Container": {
         "properties": {
            "breadcrumb": {
               "anyOf": [
                  {
                     "items": {
                        "additionalProperties": {
                           "type": "string"
                        },
                        "type": "object"
                     },
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Breadcrumb"
            },
            "description": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Description"
            },
            "json_dict": {
               "$ref": "#/$defs/JsonDict"
            },
            "keywords": {
               "title": "Keywords",
               "type": "string"
            },
            "title": {
               "title": "Title",
               "type": "string"
            }
         },
         "required": [
            "json_dict",
            "keywords",
            "title"
         ],
         "title": "Container",
         "type": "object"
      },
      "EdhRecCardRef": {
         "properties": {
            "name": {
               "title": "Name",
               "type": "string"
            },
            "url": {
               "title": "Url",
               "type": "string"
            }
         },
         "required": [
            "name",
            "url"
         ],
         "title": "EdhRecCardRef",
         "type": "object"
      },
      "ImageUri": {
         "properties": {
            "normal": {
               "anyOf": [
                  {
                     "format": "uri",
                     "minLength": 1,
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Normal"
            },
            "art_crop": {
               "anyOf": [
                  {
                     "format": "uri",
                     "minLength": 1,
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Art Crop"
            }
         },
         "title": "ImageUri",
         "type": "object"
      },
      "JsonDict": {
         "properties": {
            "cardlists": {
               "anyOf": [
                  {
                     "items": {
                        "$ref": "#/$defs/Collection"
                     },
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Cardlists"
            },
            "card": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/CollectionItemCompleteCard"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            }
         },
         "title": "JsonDict",
         "type": "object"
      },
      "PriceSlug": {
         "properties": {
            "price": {
               "anyOf": [
                  {
                     "type": "number"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Price"
            },
            "slug": {
               "title": "Slug",
               "type": "string"
            }
         },
         "required": [
            "slug"
         ],
         "title": "PriceSlug",
         "type": "object"
      },
      "PriceUrl": {
         "properties": {
            "price": {
               "anyOf": [
                  {
                     "type": "number"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Price"
            },
            "url": {
               "format": "uri",
               "minLength": 1,
               "title": "Url",
               "type": "string"
            }
         },
         "required": [
            "url"
         ],
         "title": "PriceUrl",
         "type": "object"
      }
   },
   "required": [
      "header",
      "description",
      "container"
   ]
}

Fields:
Validators:

field id: UUID | None = None
Validated by:
  • enforce_id