{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pokefocus-com/json-schema/pokefocus-com-sealed-search-schema.json",
  "title": "SealedSearch",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pokefocus-com-openapi.json#/components/schemas/SealedSearch",
  "type": "object",
  "required": [
    "query",
    "products",
    "page",
    "hasMore"
  ],
  "properties": {
    "query": {
      "type": "string"
    },
    "total": {
      "type": [
        "number",
        "null"
      ]
    },
    "page": {
      "type": "integer"
    },
    "hasMore": {
      "type": "boolean"
    },
    "capturedAt": {
      "type": "string",
      "format": "date-time",
      "description": "When PokeFocus answered; market.asOf is when a price was refreshed."
    },
    "products": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "name",
          "url"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "PokeFocus sealed product id."
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": [
              "string",
              "null"
            ]
          },
          "set": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "year": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "imageUrl": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri",
                "description": "The set logo."
              },
              "url": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri",
                "description": "The set card list on PokeFocus."
              },
              "sealedUrl": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri",
                "description": "The set sealed products on PokeFocus."
              }
            }
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "marketPrice": {
            "type": [
              "number",
              "null"
            ],
            "description": "TCGplayer market price, US dollars."
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    }
  }
}