{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/romm/json-schema/romm-memory-card-version-schema-schema.json",
  "title": "MemoryCardVersionSchema",
  "description": "A single snapshot in a card's history. Unlike the ROM-scoped assets it\nhas no rom_id/user_id, so it does not reuse the shared BaseAsset schema.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/romm-memory-cards-api-openapi.yml#/components/schemas/MemoryCardVersionSchema",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "memory_card_id": {
      "type": "integer",
      "title": "Memory Card Id"
    },
    "file_name": {
      "type": "string",
      "title": "File Name"
    },
    "file_size_bytes": {
      "type": "integer",
      "title": "File Size Bytes"
    },
    "content_hash": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content Hash"
    },
    "download_path": {
      "type": "string",
      "title": "Download Path"
    },
    "missing_from_fs": {
      "type": "boolean",
      "title": "Missing From Fs"
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "memory_card_id",
    "file_name",
    "file_size_bytes",
    "download_path",
    "missing_from_fs",
    "created_at",
    "updated_at"
  ]
}