changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$defs": {
+ "Category": {
+ "description": "A node in the FRED category tree (the `fred/category` and\n`fred/category/children` endpoints).",
+ "properties": {
+ "id": {
+ "$ref": "#/$defs/CategoryId",
+ "description": "The category's identifier."
+ },
+ "name": {
+ "description": "Human-readable name, e.g. `\"Trade Balance\"`.",
+ "type": "string"
+ },
+ "parent_id": {
+ "$ref": "#/$defs/CategoryId",
+ "default": 0,
+ "description": "The parent category's id. For the root category this is\n[`CategoryId::ROOT`] (`0`), which FRED may also omit entirely."
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "parent_id"
+ ],
+ "type": "object"
+ },
+ "CategoryId": {
+ "description": "A FRED category identifier — a numeric node in the category tree (the root is\n[`CategoryId::ROOT`], id `0`).\n\nA `Copy` newtype over `u32` so a category id can't be silently swapped for a\nparent id, a count, or an arbitrary number (ADR-0005). `#[serde(transparent)]`\ncarries it on the wire as the bare integer FRED sends.",
+ "format": "uint32",
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "properties": {
+ "categories": {
+ "description": "The categories the series belongs to.",
+ "items": {
+ "$ref": "#/$defs/Category"
+ },
+ "type": "array"
+ },
+ "count": {
+ "description": "The number of categories returned.",
+ "format": "uint",
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "count",
+ "categories"
+ ],
+ "type": "object"
+}