mightstone.services.scryfall.models.Migration

pydantic model mightstone.services.scryfall.models.Migration

Show JSON schema
{
   "title": "Migration",
   "type": "object",
   "properties": {
      "object": {
         "const": "migration",
         "enum": [
            "migration"
         ],
         "title": "Object",
         "type": "string"
      },
      "uri": {
         "format": "uri",
         "minLength": 1,
         "title": "Uri",
         "type": "string"
      },
      "id": {
         "format": "uuid",
         "title": "Id",
         "type": "string"
      },
      "created_at": {
         "anyOf": [
            {
               "format": "date",
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Created At"
      },
      "migration_strategy": {
         "title": "Migration Strategy",
         "type": "string"
      },
      "old_scryfall_id": {
         "format": "uuid",
         "title": "Old Scryfall Id",
         "type": "string"
      },
      "new_scryfall_id": {
         "anyOf": [
            {
               "format": "uuid",
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "New Scryfall Id"
      },
      "note": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Note"
      }
   },
   "required": [
      "object",
      "uri",
      "migration_strategy",
      "old_scryfall_id"
   ]
}

Fields:
field created_at: date | None = None

The date this migration was performed.

field id: UUID [Optional]

This migration’s unique UUID.

field migration_strategy: str [Required]

A computer-readable indicator of the migration strategy.

field new_scryfall_id: UUID | None = None

The replacement id of the API Card object if this is a merge.

field note: str | None = None

A note left by the Scryfall team about this migration.

field object: Literal['migration'] [Required]
field old_scryfall_id: UUID [Required]

The id of the affected API Card object.

field uri: Url [Required]

A link to the current object on Scryfall’s API.