{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://helpcompare.com/data/schema/price-history.schema.json",
    "title": "HelpCompare Entry-Price History",
    "description": "Field definitions for https://helpcompare.com/wp-json/helpcompare/v1/price-history: point-in-time snapshots of the cheapest published entry price in each category.",
    "type": "array",
    "items": {
        "type": "object",
        "required": [
            "captured_date",
            "category",
            "tool",
            "price",
            "unit"
        ],
        "properties": {
            "captured_date": {
                "type": "string",
                "description": "Date the price was captured from the vendor page.",
                "format": "date"
            },
            "category": {
                "type": "string",
                "description": "Software category."
            },
            "tool": {
                "type": "string",
                "description": "Tool with the cheapest published entry price in the category on that date."
            },
            "price": {
                "type": "string",
                "description": "Price in US dollars as a decimal string (e.g. \"25.00\").",
                "pattern": "^[0-9]+(\\.[0-9]+)?$"
            },
            "unit": {
                "type": "string",
                "description": "Billing unit: \"/mo\" (per month), \"/mo flat\" (flat per account), \"/seat/mo\" or \"/user/mo\" (per seat or user per month)."
            }
        }
    }
}