{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/master-setter-com/json-schema/master-setter-com-set-with-count-schema.json",
  "title": "SetWithCount",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/master-setter-com-openapi.json#/components/schemas/SetWithCount",
  "allOf": [
    {
      "$ref": "#/$defs/Set"
    },
    {
      "type": "object",
      "properties": {
        "card_count": {
          "type": "integer",
          "description": "Cards actually present."
        }
      }
    }
  ],
  "$defs": {
    "Set": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "description": "Name in the set's own language."
        },
        "name_en": {
          "type": [
            "string",
            "null"
          ],
          "description": "English name where known."
        },
        "series": {
          "type": [
            "string",
            "null"
          ]
        },
        "release_date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "total": {
          "type": [
            "integer",
            "null"
          ]
        },
        "printed_total": {
          "type": [
            "integer",
            "null"
          ]
        },
        "language": {
          "type": "string"
        },
        "logo_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "symbol_url": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}