{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pokefocus-com/json-schema/pokefocus-com-market-pulse-schema.json",
  "title": "MarketPulse",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pokefocus-com-openapi.json#/components/schemas/MarketPulse",
  "type": "object",
  "required": [
    "report",
    "recentReports"
  ],
  "properties": {
    "report": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "slug": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "subtitle": {
          "type": [
            "string",
            "null"
          ]
        },
        "date": {
          "type": "string",
          "description": "Report date, YYYY-MM-DD."
        },
        "publishedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "sentiment": {
          "type": [
            "string",
            "null"
          ],
          "description": "The report's 7-day direction: More cards up, More cards down, or Mixed."
        },
        "cardsTracked": {
          "type": [
            "number",
            "null"
          ]
        },
        "cardsUp": {
          "type": [
            "number",
            "null"
          ]
        },
        "cardsDown": {
          "type": [
            "number",
            "null"
          ]
        },
        "sections": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "heading": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              },
              "items": {
                "type": "array",
                "description": "The cards or sealed products the section highlights.",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "card",
                        "sealed"
                      ]
                    },
                    "id": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "set": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "price": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "US dollars."
                    },
                    "change7dPercent": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "sales7d": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "sales30d": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "imageUrl": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uri"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    }
                  }
                }
              },
              "tables": {
                "type": "array",
                "description": "Ranked tables (sets, sealed products) as the report shows them.",
                "items": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "type": "string"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "capturedAt": {
      "type": "string",
      "format": "date-time",
      "description": "When PokeFocus answered; market.asOf is when a price was refreshed."
    },
    "recentReports": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    }
  }
}