{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/activision-blizzard/refs/heads/main/json-structure/activision-blizzard-hearthstone-deck-structure.json",
  "name": "HearthstoneDeck",
  "description": "A Hearthstone deck",
  "type": "object",
  "properties": {
    "deckCode": {
      "type": "string",
      "description": "The deck code",
      "example": "AAECAQcG0LQDubQD3rUD57UDibYDvbYDDI..."
    },
    "version": {
      "type": "int32",
      "description": "Deck format version",
      "example": 1
    },
    "format": {
      "type": "object",
      "description": "Deck format"
    },
    "hero": {
      "$ref": "#/components/schemas/HearthstoneCard"
    },
    "heroPower": {
      "$ref": "#/components/schemas/HearthstoneCard"
    },
    "class": {
      "type": "object",
      "description": "Deck class"
    },
    "cards": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HearthstoneCard"
      },
      "description": "Cards in the deck"
    },
    "cardCount": {
      "type": "int32",
      "description": "Number of cards in the deck",
      "example": 30
    }
  }
}