{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/romm/json-schema/romm-user-memory-card-schema-schema.json",
  "title": "UserMemoryCardSchema",
  "description": "A card enriched with its owner's username, for the shared/community\npicker. Mirrors UserStateSchema.",
  "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/UserMemoryCardSchema",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "user_id": {
      "type": "integer",
      "title": "User Id"
    },
    "emulator": {
      "type": "string",
      "title": "Emulator"
    },
    "platform_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Platform Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "slot": {
      "type": "integer",
      "title": "Slot"
    },
    "is_public": {
      "type": "boolean",
      "title": "Is Public",
      "default": false
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "title": "Updated At"
    },
    "username": {
      "type": "string",
      "title": "Username"
    },
    "user_avatar_path": {
      "type": "string",
      "title": "User Avatar Path",
      "default": ""
    },
    "user_updated_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "User Updated At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "user_id",
    "emulator",
    "name",
    "slot",
    "created_at",
    "updated_at",
    "username"
  ]
}