{
    "openapi": "3.1.2",
    "info": {
        "title": "PennyPast",
        "version": "1"
    },
    "servers": [
        {
            "url": "https:\/\/pennypast.co.uk\/api"
        }
    ],
    "paths": {
        "\/v1\/annotations": {
            "get": {
                "operationId": "v1.annotations.index",
                "description": "Filters: filter[country]=GB, filter[product]=slug, filter[kind]=tax,policy; from, to (YYYY or YYYY-MM).",
                "summary": "Dated context for charts: taxes, policy, basket and method changes",
                "tags": [
                    "Annotation"
                ],
                "responses": {
                    "200": {
                        "description": "`JsonResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/JsonResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/v1\/anomalies": {
            "get": {
                "operationId": "v1.anomalies.index",
                "description": "Filters: filter[product]=slug, filter[type]=shrink,price_spike. Only confirmed anomalies are public.",
                "summary": "Confirmed anomalies (shrinkflation and friends)",
                "tags": [
                    "Anomaly"
                ],
                "responses": {
                    "200": {
                        "description": "`JsonResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/JsonResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/v1\/anomalies\/{anomaly}": {
            "get": {
                "operationId": "v1.anomalies.show",
                "summary": "One confirmed anomaly by id",
                "tags": [
                    "Anomaly"
                ],
                "parameters": [
                    {
                        "name": "anomaly",
                        "in": "path",
                        "required": true,
                        "description": "The anomaly ID",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`JsonResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/JsonResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    }
                }
            }
        },
        "\/v1\/calculate": {
            "get": {
                "operationId": "v1.calculate",
                "description": "Query: amount (required), from (YYYY or YYYY-MM, required), to (default latest month),\nindex (default: the country's default index), country (default GB).",
                "summary": "Express an amount from one period in the money of another (\"today's money\")",
                "tags": [
                    "Calculate"
                ],
                "parameters": [
                    {
                        "name": "amount",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "index",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "type": {
                                                    "type": "string",
                                                    "const": "calculations"
                                                },
                                                "id": {
                                                    "type": "string"
                                                },
                                                "attributes": {
                                                    "type": "array",
                                                    "items": {}
                                                }
                                            },
                                            "required": [
                                                "type",
                                                "id",
                                                "attributes"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "additionalProperties": {}
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/v1\/countries": {
            "get": {
                "operationId": "v1.countries.index",
                "summary": "List countries with data",
                "tags": [
                    "Country"
                ],
                "responses": {
                    "200": {
                        "description": "`JsonResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/JsonResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/v1\/countries\/{country}": {
            "get": {
                "operationId": "v1.countries.show",
                "summary": "One country by ISO 3166-1 alpha-2 code",
                "tags": [
                    "Country"
                ],
                "parameters": [
                    {
                        "name": "country",
                        "in": "path",
                        "required": true,
                        "description": "The country iso2",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`JsonResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/JsonResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    }
                }
            }
        },
        "\/v1\/indices": {
            "get": {
                "operationId": "v1.indices.index",
                "summary": "List inflation indices",
                "tags": [
                    "Index"
                ],
                "responses": {
                    "200": {
                        "description": "`JsonResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/JsonResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/v1\/indices\/{index}": {
            "get": {
                "operationId": "v1.indices.show",
                "summary": "One inflation index by code (e.g. GB-CPI)",
                "tags": [
                    "Index"
                ],
                "parameters": [
                    {
                        "name": "index",
                        "in": "path",
                        "required": true,
                        "description": "The index code",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`JsonResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/JsonResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    }
                }
            }
        },
        "\/v1\/indices\/{index}\/points": {
            "get": {
                "operationId": "v1.indices.points",
                "description": "Query: from, to (YYYY or YYYY-MM), resolution=month|year.",
                "summary": "Index levels as compact [period, value] pairs",
                "tags": [
                    "Index"
                ],
                "parameters": [
                    {
                        "name": "index",
                        "in": "path",
                        "required": true,
                        "description": "The index code",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "resolution",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "default": "month"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "type": {
                                                    "type": "string",
                                                    "const": "index-points"
                                                },
                                                "id": {
                                                    "type": "string"
                                                },
                                                "attributes": {
                                                    "type": "object",
                                                    "properties": {
                                                        "index": {
                                                            "type": "string"
                                                        },
                                                        "base": {
                                                            "type": "string"
                                                        },
                                                        "resolution": {
                                                            "type": "string"
                                                        },
                                                        "points": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "array",
                                                                "prefixItems": [
                                                                    {
                                                                        "type": "string"
                                                                    },
                                                                    {
                                                                        "type": "number"
                                                                    }
                                                                ],
                                                                "minItems": 2,
                                                                "maxItems": 2
                                                            }
                                                        }
                                                    },
                                                    "required": [
                                                        "index",
                                                        "base",
                                                        "resolution",
                                                        "points"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "type",
                                                "id",
                                                "attributes"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "additionalProperties": {}
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    }
                }
            }
        },
        "\/v1\/health": {
            "get": {
                "operationId": "v1.health",
                "summary": "Liveness probe",
                "tags": [
                    "Meta"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "status": {
                                            "type": "string",
                                            "const": "ok"
                                        }
                                    },
                                    "required": [
                                        "status"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/v1\/meta": {
            "get": {
                "operationId": "v1.meta",
                "summary": "Latest releases per source, counts and the next ONS release",
                "tags": [
                    "Meta"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "type": {
                                                    "type": "string",
                                                    "const": "meta"
                                                },
                                                "id": {
                                                    "type": "string",
                                                    "const": "current"
                                                },
                                                "attributes": {
                                                    "type": "object",
                                                    "properties": {
                                                        "api_version": {
                                                            "type": "string",
                                                            "const": "1"
                                                        },
                                                        "method_version": {
                                                            "type": "string",
                                                            "const": "2026.2"
                                                        },
                                                        "counts": {
                                                            "type": "object",
                                                            "properties": {
                                                                "products": {
                                                                    "type": "integer",
                                                                    "minimum": 0
                                                                },
                                                                "series": {
                                                                    "type": "integer",
                                                                    "minimum": 0
                                                                },
                                                                "observations": {
                                                                    "type": "integer",
                                                                    "minimum": 0
                                                                },
                                                                "index_points": {
                                                                    "type": "integer",
                                                                    "minimum": 0
                                                                }
                                                            },
                                                            "required": [
                                                                "products",
                                                                "series",
                                                                "observations",
                                                                "index_points"
                                                            ]
                                                        },
                                                        "indices": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "code": {
                                                                        "type": "string"
                                                                    },
                                                                    "last_period": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ]
                                                                    },
                                                                    "release_at": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ]
                                                                    },
                                                                    "next_release_at": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ]
                                                                    }
                                                                },
                                                                "required": [
                                                                    "code",
                                                                    "last_period",
                                                                    "release_at",
                                                                    "next_release_at"
                                                                ]
                                                            }
                                                        },
                                                        "sources": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "code": {
                                                                        "type": "string"
                                                                    },
                                                                    "health": {
                                                                        "type": "string"
                                                                    },
                                                                    "last_release_ref": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ]
                                                                    },
                                                                    "last_run_at": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ]
                                                                    },
                                                                    "next_release_at": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ]
                                                                    }
                                                                },
                                                                "required": [
                                                                    "code",
                                                                    "health",
                                                                    "last_release_ref",
                                                                    "last_run_at",
                                                                    "next_release_at"
                                                                ]
                                                            }
                                                        },
                                                        "next_ons_release_at": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "api_version",
                                                        "method_version",
                                                        "counts",
                                                        "indices",
                                                        "sources",
                                                        "next_ons_release_at"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "type",
                                                "id",
                                                "attributes"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "additionalProperties": {}
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/v1\/movers": {
            "get": {
                "operationId": "v1.movers",
                "description": "Query: country=GB, period=YYYY-MM (default latest), window=1m|12m, direction=up|down|all, limit=20, category=01.2.2.\nRead from the precomputed movers table (`meta.precomputed`). A change is only ever like for like: a pair of\nmonths either side of a change of ONS measure has no figure and is not ranked.",
                "summary": "Biggest risers and fallers among primary series for a month",
                "tags": [
                    "Mover"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/v1\/indexes": {
            "get": {
                "operationId": "v1.indexes.index",
                "description": "Each row carries the hero product, the price then and now, the inflation-only price, the index value\n(shelf price as a percentage of the inflation-only price) and the page, CSV, badge and API URLs.",
                "summary": "List the named indexes with their headline figures",
                "tags": [
                    "NamedIndex"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "type": {
                                                    "type": "string",
                                                    "const": "indexes"
                                                },
                                                "id": {
                                                    "type": "string"
                                                },
                                                "attributes": {
                                                    "type": "object",
                                                    "properties": {
                                                        "country": {
                                                            "type": "string"
                                                        },
                                                        "rows": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "slug": {
                                                                        "type": "string"
                                                                    },
                                                                    "name": {
                                                                        "type": "string"
                                                                    },
                                                                    "thing": {
                                                                        "type": "string"
                                                                    },
                                                                    "blurb": {
                                                                        "type": "string"
                                                                    },
                                                                    "value": {
                                                                        "type": "string"
                                                                    },
                                                                    "today": {
                                                                        "type": [
                                                                            "object",
                                                                            "null"
                                                                        ],
                                                                        "properties": {
                                                                            "average": {
                                                                                "type": "string"
                                                                            },
                                                                            "observed_on": {
                                                                                "type": "string"
                                                                            },
                                                                            "retailers": {
                                                                                "type": "integer"
                                                                            }
                                                                        },
                                                                        "required": [
                                                                            "average",
                                                                            "observed_on",
                                                                            "retailers"
                                                                        ]
                                                                    },
                                                                    "product": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ]
                                                                    },
                                                                    "official": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ]
                                                                    },
                                                                    "receipt": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ]
                                                                    },
                                                                    "links": {
                                                                        "type": "object",
                                                                        "properties": {
                                                                            "page": {
                                                                                "type": "string"
                                                                            },
                                                                            "csv": {
                                                                                "type": "string"
                                                                            },
                                                                            "badge": {
                                                                                "type": "string"
                                                                            },
                                                                            "api": {
                                                                                "type": "string"
                                                                            }
                                                                        },
                                                                        "required": [
                                                                            "page",
                                                                            "csv",
                                                                            "badge",
                                                                            "api"
                                                                        ]
                                                                    }
                                                                },
                                                                "required": [
                                                                    "slug",
                                                                    "name",
                                                                    "thing",
                                                                    "blurb",
                                                                    "value",
                                                                    "today",
                                                                    "product",
                                                                    "official",
                                                                    "receipt",
                                                                    "links"
                                                                ]
                                                            }
                                                        }
                                                    },
                                                    "required": [
                                                        "country",
                                                        "rows"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "type",
                                                "id",
                                                "attributes"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "additionalProperties": {}
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/v1\/indexes\/{index}": {
            "get": {
                "operationId": "v1.indexes.show",
                "description": "The hero product's receipt, every year's price in today's money, the other members of the index, each\nreported price change with the publication that reported it, the plain questions and answers, and the\nmonth-by-month rows behind the chart.",
                "summary": "One named index in full",
                "tags": [
                    "NamedIndex"
                ],
                "parameters": [
                    {
                        "name": "index",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "type": {
                                                    "type": "string",
                                                    "const": "index"
                                                },
                                                "id": {
                                                    "type": "string"
                                                },
                                                "attributes": {
                                                    "type": "object",
                                                    "properties": {
                                                        "slug": {
                                                            "type": "string"
                                                        },
                                                        "name": {
                                                            "type": "string"
                                                        },
                                                        "thing": {
                                                            "type": "string"
                                                        },
                                                        "blurb": {
                                                            "type": "string"
                                                        },
                                                        "value": {
                                                            "type": "string"
                                                        },
                                                        "today": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "product": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "official": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "receipt": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "links": {
                                                            "type": "object",
                                                            "properties": {
                                                                "page": {
                                                                    "type": "string"
                                                                },
                                                                "csv": {
                                                                    "type": "string"
                                                                },
                                                                "badge": {
                                                                    "type": "string"
                                                                },
                                                                "api": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "required": [
                                                                "page",
                                                                "csv",
                                                                "badge",
                                                                "api"
                                                            ]
                                                        },
                                                        "members": {
                                                            "type": "array",
                                                            "items": {}
                                                        },
                                                        "years": {
                                                            "type": "string"
                                                        },
                                                        "changes": {
                                                            "type": "string"
                                                        },
                                                        "faq": {
                                                            "type": "string"
                                                        },
                                                        "months": {
                                                            "type": [
                                                                "array",
                                                                "null"
                                                            ],
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "period": {
                                                                        "type": "string"
                                                                    },
                                                                    "price": {
                                                                        "type": "number"
                                                                    },
                                                                    "in_todays_money": {
                                                                        "type": [
                                                                            "number",
                                                                            "null"
                                                                        ]
                                                                    },
                                                                    "inflation_only": {
                                                                        "type": [
                                                                            "number",
                                                                            "null"
                                                                        ]
                                                                    },
                                                                    "flags": {
                                                                        "type": "array",
                                                                        "items": {
                                                                            "type": "string"
                                                                        }
                                                                    }
                                                                },
                                                                "required": [
                                                                    "period",
                                                                    "price",
                                                                    "in_todays_money",
                                                                    "inflation_only",
                                                                    "flags"
                                                                ]
                                                            }
                                                        }
                                                    },
                                                    "required": [
                                                        "slug",
                                                        "name",
                                                        "thing",
                                                        "blurb",
                                                        "value",
                                                        "today",
                                                        "product",
                                                        "official",
                                                        "receipt",
                                                        "links",
                                                        "members",
                                                        "years",
                                                        "changes",
                                                        "faq",
                                                        "months"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "type",
                                                "id",
                                                "attributes"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "additionalProperties": {}
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/v1\/series\/{series}\/observations": {
            "get": {
                "operationId": "v1.series.observations",
                "description": "Query: from, to (YYYY-MM), resolution=month|year, adjust_to=latest|YYYY-MM, index=GB-CPI,\nregion=all|2..13 (quote series; default national only).\n\nValues are as published. A series stitched from more than one ONS file carries `meta.like_for_like` (segments,\njoins, factors); with `adjust_to`, `meta.real_change_pct` compares the first and last rows like for like, on the\nmeasure of the last, and is a whole number when the link between them is approximate.",
                "summary": "Observations of a series as compact rows: [period, value, adjusted_value, n, flags]",
                "tags": [
                    "Observation"
                ],
                "parameters": [
                    {
                        "name": "series",
                        "in": "path",
                        "required": true,
                        "description": "The series ID",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "type": {
                                                    "type": "string",
                                                    "const": "observations"
                                                },
                                                "id": {
                                                    "type": "string"
                                                },
                                                "attributes": {
                                                    "type": "object",
                                                    "properties": {
                                                        "series": {
                                                            "type": "string"
                                                        },
                                                        "code": {
                                                            "type": "string"
                                                        },
                                                        "statistic": {
                                                            "type": "string"
                                                        },
                                                        "currency": {
                                                            "type": "string"
                                                        },
                                                        "quantity_std": {
                                                            "type": [
                                                                "number",
                                                                "null"
                                                            ]
                                                        },
                                                        "unit": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "quantity_is_range": {
                                                            "type": "boolean"
                                                        },
                                                        "resolution": {
                                                            "type": "string"
                                                        },
                                                        "adjusted_to": {
                                                            "type": "string"
                                                        },
                                                        "index": {
                                                            "type": "string"
                                                        },
                                                        "columns": {
                                                            "type": "array",
                                                            "prefixItems": [
                                                                {
                                                                    "type": "string",
                                                                    "const": "region"
                                                                },
                                                                {
                                                                    "type": "string",
                                                                    "const": "value"
                                                                },
                                                                {
                                                                    "type": "string",
                                                                    "const": "adjusted_value"
                                                                },
                                                                {
                                                                    "type": "string",
                                                                    "const": "n"
                                                                },
                                                                {
                                                                    "type": "string",
                                                                    "const": "flags"
                                                                }
                                                            ],
                                                            "minItems": 5,
                                                            "maxItems": 5
                                                        },
                                                        "rows": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "series",
                                                        "code",
                                                        "statistic",
                                                        "currency",
                                                        "quantity_std",
                                                        "unit",
                                                        "quantity_is_range",
                                                        "resolution",
                                                        "adjusted_to",
                                                        "index",
                                                        "columns",
                                                        "rows"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "type",
                                                "id",
                                                "attributes"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "additionalProperties": {}
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    }
                }
            }
        },
        "\/v1\/products": {
            "get": {
                "operationId": "v1.products.index",
                "description": "Filters: filter[country]=GB, filter[category]=01.2.2, filter[tag]=cola, filter[q]=cola. Cursor paginated.",
                "summary": "List product concepts",
                "tags": [
                    "Product"
                ],
                "responses": {
                    "200": {
                        "description": "`JsonResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/JsonResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/v1\/products\/{product}": {
            "get": {
                "operationId": "v1.products.show",
                "summary": "One product concept by slug",
                "tags": [
                    "Product"
                ],
                "parameters": [
                    {
                        "name": "product",
                        "in": "path",
                        "required": true,
                        "description": "The product slug",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`JsonResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/JsonResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    }
                }
            }
        },
        "\/v1\/products\/{product}\/variants": {
            "get": {
                "operationId": "v1.products.variants",
                "summary": "Brand and pack-size variants of a product, with their size timeline",
                "tags": [
                    "Product"
                ],
                "parameters": [
                    {
                        "name": "product",
                        "in": "path",
                        "required": true,
                        "description": "The product slug",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`JsonResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/JsonResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    }
                }
            }
        },
        "\/v1\/series": {
            "get": {
                "operationId": "v1.series.index",
                "description": "Filters: filter[product]=slug, filter[country]=GB, filter[source]=ons-average-prices,\nfilter[statistic]=average,quote_median, filter[primary]=true. Cursor paginated.",
                "summary": "List series",
                "tags": [
                    "Series"
                ],
                "responses": {
                    "200": {
                        "description": "`JsonResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/JsonResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/v1\/series\/{series}": {
            "get": {
                "operationId": "v1.series.show",
                "description": "A series stitched from more than one ONS file carries `meta.like_for_like`: its segments with their level and\nlink factors and every join with the link in force and the months it was measured on, so the figures the site\nprints can be reproduced from the published observations.",
                "summary": "One series by ULID or code",
                "tags": [
                    "Series"
                ],
                "parameters": [
                    {
                        "name": "series",
                        "in": "path",
                        "required": true,
                        "description": "The series ID",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`JsonResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/JsonResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    }
                }
            }
        },
        "\/v1\/sources": {
            "get": {
                "operationId": "v1.sources.index",
                "summary": "List data sources with licence, attribution and health",
                "tags": [
                    "Source"
                ],
                "responses": {
                    "200": {
                        "description": "`JsonResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/JsonResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/v1\/sources\/{source}": {
            "get": {
                "operationId": "v1.sources.show",
                "summary": "One data source by code",
                "tags": [
                    "Source"
                ],
                "parameters": [
                    {
                        "name": "source",
                        "in": "path",
                        "required": true,
                        "description": "The source code",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`JsonResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/JsonResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "JsonResource": {
                "type": "string",
                "title": "JsonResource"
            }
        },
        "responses": {
            "ModelNotFoundException": {
                "description": "Not found",
                "content": {
                    "application\/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Error overview."
                                }
                            },
                            "required": [
                                "message"
                            ]
                        }
                    }
                }
            }
        }
    }
}