# com.jackschumann.test.deck

> Published by [jackschumann.com](https://lexicon.garden/identity/did:plc:aym6ooda53urpyjxn4aph5on)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:aym6ooda53urpyjxn4aph5on/com.jackschumann.test.deck)
- [Documentation](https://lexicon.garden/lexicon/did:plc:aym6ooda53urpyjxn4aph5on/com.jackschumann.test.deck/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:aym6ooda53urpyjxn4aph5on/com.jackschumann.test.deck/examples)

## Definitions

### `com.jackschumann.test.deck`

**Type**: `record`

MTG Decklist

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | Name of deck |
| `cards` | `array` | Yes | Cards included in this deck |
| `createdAt` | `string` (datetime) | Yes |  |

### `com.jackschumann.test.deck#cardTag`

**Type**: `object`

A free-form tag applied to a card entry

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tag` | `string` | Yes |  |

### `com.jackschumann.test.deck#cardEntry`

**Type**: `object`

A single card entry in a decklist

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tags` | `array` | No | Optional free-form tags for this card entry |
| `count` | `integer` | Yes | Number of copies of this card |
| `oracleId` | `string` | Yes | Scryfall Oracle ID (UUID) for the card |

## Raw Schema

```json
{
  "id": "com.jackschumann.test.deck",
  "defs": {
    "main": {
      "key": "any",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "cards",
          "createdAt"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 512,
            "minLength": 1,
            "description": "Name of deck",
            "maxGraphemes": 128
          },
          "cards": {
            "type": "array",
            "items": {
              "ref": "#cardEntry",
              "type": "ref"
            },
            "minLength": 1,
            "description": "Cards included in this deck"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "MTG Decklist"
    },
    "cardTag": {
      "type": "object",
      "required": [
        "tag"
      ],
      "properties": {
        "tag": {
          "type": "string",
          "maxLength": 640,
          "maxGraphemes": 128
        }
      },
      "description": "A free-form tag applied to a card entry"
    },
    "cardEntry": {
      "type": "object",
      "required": [
        "oracleId",
        "count"
      ],
      "properties": {
        "tags": {
          "type": "array",
          "items": {
            "ref": "#cardTag",
            "type": "ref"
          },
          "description": "Optional free-form tags for this card entry"
        },
        "count": {
          "type": "integer",
          "minimum": 1,
          "description": "Number of copies of this card"
        },
        "oracleId": {
          "type": "string",
          "maxLength": 36,
          "minLength": 36,
          "description": "Scryfall Oracle ID (UUID) for the card"
        }
      },
      "description": "A single card entry in a decklist"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
