changedOutput schema / properties / result / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "available": {
- "const": true,
- "default": true,
- "type": "boolean"
- },
- "chart_data": {
- "additionalProperties": false,
- "description": "An object that must be empty: the bridge sends ``{}`` for it.",
- "properties": {},
- "type": "object"
- },
- "links": {
- "additionalProperties": false,
- "properties": {
- "resolved_label": {
- "type": "string"
- }
- },
- "required": [
- "resolved_label"
- ],
- "type": "object"
- },
- "narrative_facts": {
- "additionalProperties": false,
- "properties": {
- "bundled_children": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "customs_code": {
- "description": "A canonical customs code, TOTAL, or a supported residual spelling.",
- "type": "string"
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "customs_code",
- "text"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "customs_code": {
- "type": "string"
- },
- "data_coverage": {
- "additionalProperties": false,
- "properties": {
- "data_max": {
- "description": "The last month with data inside the window ('YYYY-MM').",
- "pattern": "\\d{4}-\\d{2}",
- "type": "string"
- },
- "data_min": {
- "description": "The first month with data inside the window ('YYYY-MM').",
- "pattern": "\\d{4}-\\d{2}",
- "type": "string"
- }
- },
- "required": [
- "data_min",
- "data_max"
- ],
- "type": "object"
- },
- "is_bundling_heading": {
- "const": true,
- "type": "boolean"
- },
- "levels": {
- "items": {
- "additionalProperties": false,
- "description": "One level of a customs code's description hierarchy, chapter first\n(``ComextNomenclature.get_description_levels``, plus the synthetic\nlevels of residual spellings and the dated levels of former editions).\n\nThe optional flags are sparse on the wire: present when true, absent\notherwise (the shape of the nomenclature layer's raw dicts).",
- "properties": {
- "customs_code": {
- "description": "The level's customs code.",
- "type": "string"
- },
- "is_catch_all": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "True for a catch-all ('other') level."
- },
- "residual": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "True for the synthetic level of a residual spelling."
- },
- "segment": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "True for a historical segment's own definition."
- },
- "siblings": {
- "anyOf": [
- {
- "items": {
- "additionalProperties": false,
- "properties": {
- "customs_code": {
- "description": "A canonical customs code, TOTAL, or a supported residual spelling.",
- "type": "string"
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "customs_code",
- "text"
- ],
- "type": "object"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "For a catch-all level, the ordinary siblings it excludes."
- },
- "text": {
- "description": "The level's label, in the requested language.",
- "type": "string"
- },
- "untranslated": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "True when the label fell back to English."
- },
- "window": {
- "anyOf": [
- {
- "additionalProperties": false,
- "description": "The validity window of one customs-code segment (one definition).",
- "properties": {
- "valid_from": {
- "description": "First day of the window, ISO date.",
- "type": "string"
- },
- "valid_to": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Last day of the window, ISO date; null while in force."
- }
- },
- "required": [
- "valid_from",
- "valid_to"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "For a level read from a dated edition (a former definition, or one of its ancestors as that edition had them): the validity window of the definition shown. Absent for current-edition levels."
- }
- },
- "required": [
- "customs_code",
- "text"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "prodcom_mapping": {
- "additionalProperties": false,
- "description": "The PRODCOM mapping, present for the codes PRODCOM covers.",
- "properties": {
- "available": {
- "type": "boolean"
- },
- "prodcom_codes": {
- "items": {
- "additionalProperties": false,
- "description": "One distinct data-bearing PRODCOM code of the code picker\n(``ProdcomNomenclature.deduplicate_resolved``): several mapped codes that\ncollapse onto the same aggregate appear once.",
- "properties": {
- "description": {
- "description": "The code's label.",
- "type": "string"
- },
- "original_prodcom_code_fmt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "The mapped dotted forms that fell back to this code (comma-joined); None for exact codes."
- },
- "prodcom_code": {
- "description": "The data-bearing PRODCOM code, in dotted form on the wire.",
- "examples": [
- "23.99.14",
- "24.10.T3.40"
- ],
- "type": "string"
- },
- "status": {
- "description": "'exact' when the data-bearing code is a mapped code's own level, 'fallback' otherwise.",
- "enum": [
- "exact",
- "fallback",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "prodcom_code",
- "description",
- "status",
- "original_prodcom_code_fmt"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "reason": {
- "type": "null"
- }
- },
- "required": [
- "available",
- "reason",
- "prodcom_codes"
- ],
- "type": "object"
- },
- "resolved_code": {
- "type": "string"
- },
- "resolved_label": {
- "type": "string"
- }
- },
- "required": [
- "prodcom_mapping",
- "is_bundling_heading",
- "bundled_children",
- "customs_code",
- "resolved_code",
- "resolved_label",
- "levels",
- "data_coverage"
- ],
- "type": "object"
- },
- "reason": {
- "default": null,
- "type": "null"
- }
- },
- "required": [
- "narrative_facts",
- "chart_data",
- "links"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "available": {
- "const": true,
- "default": true,
- "type": "boolean"
- },
- "chart_data": {
- "additionalProperties": false,
- "description": "An object that must be empty: the bridge sends ``{}`` for it.",
- "properties": {},
- "type": "object"
- },
- "links": {
- "additionalProperties": false,
- "properties": {
- "resolved_label": {
- "type": "string"
- }
- },
- "required": [
- "resolved_label"
- ],
- "type": "object"
- },
- "narrative_facts": {
- "additionalProperties": false,
- "properties": {
- "bundled_children": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "customs_code": {
- "description": "A canonical customs code, TOTAL, or a supported residual spelling.",
- "type": "string"
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "customs_code",
- "text"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "customs_code": {
- "type": "string"
- },
- "data_coverage": {
- "additionalProperties": false,
- "properties": {
- "data_max": {
- "description": "The last month with data inside the window ('YYYY-MM').",
- "pattern": "\\d{4}-\\d{2}",
- "type": "string"
- },
- "data_min": {
- "description": "The first month with data inside the window ('YYYY-MM').",
- "pattern": "\\d{4}-\\d{2}",
- "type": "string"
- }
- },
- "required": [
- "data_min",
- "data_max"
- ],
- "type": "object"
- },
- "is_bundling_heading": {
- "const": true,
- "type": "boolean"
- },
- "levels": {
- "items": {
- "additionalProperties": false,
- "description": "One level of a customs code's description hierarchy, chapter first\n(``ComextNomenclature.get_description_levels``, plus the synthetic\nlevels of residual spellings and the dated levels of former editions).\n\nThe optional flags are sparse on the wire: present when true, absent\notherwise (the shape of the nomenclature layer's raw dicts).",
- "properties": {
- "customs_code": {
- "description": "The level's customs code.",
- "type": "string"
- },
- "is_catch_all": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "True for a catch-all ('other') level."
- },
- "residual": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "True for the synthetic level of a residual spelling."
- },
- "segment": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "True for a historical segment's own definition."
- },
- "siblings": {
- "anyOf": [
- {
- "items": {
- "additionalProperties": false,
- "properties": {
- "customs_code": {
- "description": "A canonical customs code, TOTAL, or a supported residual spelling.",
- "type": "string"
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "customs_code",
- "text"
- ],
- "type": "object"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "For a catch-all level, the ordinary siblings it excludes."
- },
- "text": {
- "description": "The level's label, in the requested language.",
- "type": "string"
- },
- "untranslated": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "True when the label fell back to English."
- },
- "window": {
- "anyOf": [
- {
- "additionalProperties": false,
- "description": "The validity window of one customs-code segment (one definition).",
- "properties": {
- "valid_from": {
- "description": "First day of the window, ISO date.",
- "type": "string"
- },
- "valid_to": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Last day of the window, ISO date; null while in force."
- }
- },
- "required": [
- "valid_from",
- "valid_to"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "For a level read from a dated edition (a former definition, or one of its ancestors as that edition had them): the validity window of the definition shown. Absent for current-edition levels."
- }
- },
- "required": [
- "customs_code",
- "text"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "resolved_code": {
- "type": "string"
- },
- "resolved_label": {
- "type": "string"
- }
- },
- "required": [
- "is_bundling_heading",
- "bundled_children",
- "customs_code",
- "resolved_code",
- "resolved_label",
- "levels",
- "data_coverage"
- ],
- "type": "object"
- },
- "reason": {
- "default": null,
- "type": "null"
- }
- },
- "required": [
- "narrative_facts",
- "chart_data",
- "links"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "available": {
- "const": true,
- "default": true,
- "type": "boolean"
- },
- "chart_data": {
- "additionalProperties": false,
- "description": "An object that must be empty: the bridge sends ``{}`` for it.",
- "properties": {},
- "type": "object"
- },
- "links": {
- "additionalProperties": false,
- "properties": {
- "resolved_label": {
- "type": "string"
- }
- },
- "required": [
- "resolved_label"
- ],
- "type": "object"
- },
- "narrative_facts": {
- "additionalProperties": false,
- "properties": {
- "customs_code": {
- "type": "string"
- },
- "data_coverage": {
- "additionalProperties": false,
- "properties": {
- "data_max": {
- "description": "The last month with data inside the window ('YYYY-MM').",
- "pattern": "\\d{4}-\\d{2}",
- "type": "string"
- },
- "data_min": {
- "description": "The first month with data inside the window ('YYYY-MM').",
- "pattern": "\\d{4}-\\d{2}",
- "type": "string"
- }
- },
- "required": [
- "data_min",
- "data_max"
- ],
- "type": "object"
- },
- "is_bundling_heading": {
- "const": false,
- "type": "boolean"
- },
- "levels": {
- "items": {
- "additionalProperties": false,
- "description": "One level of a customs code's description hierarchy, chapter first\n(``ComextNomenclature.get_description_levels``, plus the synthetic\nlevels of residual spellings and the dated levels of former editions).\n\nThe optional flags are sparse on the wire: present when true, absent\notherwise (the shape of the nomenclature layer's raw dicts).",
- "properties": {
- "customs_code": {
- "description": "The level's customs code.",
- "type": "string"
- },
- "is_catch_all": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "True for a catch-all ('other') level."
- },
- "residual": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "True for the synthetic level of a residual spelling."
- },
- "segment": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "True for a historical segment's own definition."
- },
- "siblings": {
- "anyOf": [
- {
- "items": {
- "additionalProperties": false,
- "properties": {
- "customs_code": {
- "description": "A canonical customs code, TOTAL, or a supported residual spelling.",
- "type": "string"
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "customs_code",
- "text"
- ],
- "type": "object"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "For a catch-all level, the ordinary siblings it excludes."
- },
- "text": {
- "description": "The level's label, in the requested language.",
- "type": "string"
- },
- "untranslated": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "True when the label fell back to English."
- },
- "window": {
- "anyOf": [
- {
- "additionalProperties": false,
- "description": "The validity window of one customs-code segment (one definition).",
- "properties": {
- "valid_from": {
- "description": "First day of the window, ISO date.",
- "type": "string"
- },
- "valid_to": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Last day of the window, ISO date; null while in force."
- }
- },
- "required": [
- "valid_from",
- "valid_to"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "For a level read from a dated edition (a former definition, or one of its ancestors as that edition had them): the validity window of the definition shown. Absent for current-edition levels."
- }
- },
- "required": [
- "customs_code",
- "text"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "prodcom_mapping": {
- "additionalProperties": false,
- "description": "The PRODCOM mapping, present for the codes PRODCOM covers.",
- "properties": {
- "available": {
- "type": "boolean"
- },
- "prodcom_codes": {
- "items": {
- "additionalProperties": false,
- "description": "One distinct data-bearing PRODCOM code of the code picker\n(``ProdcomNomenclature.deduplicate_resolved``): several mapped codes that\ncollapse onto the same aggregate appear once.",
- "properties": {
- "description": {
- "description": "The code's label.",
- "type": "string"
- },
- "original_prodcom_code_fmt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "The mapped dotted forms that fell back to this code (comma-joined); None for exact codes."
- },
- "prodcom_code": {
- "description": "The data-bearing PRODCOM code, in dotted form on the wire.",
- "examples": [
- "23.99.14",
- "24.10.T3.40"
- ],
- "type": "string"
- },
- "status": {
- "description": "'exact' when the data-bearing code is a mapped code's own level, 'fallback' otherwise.",
- "enum": [
- "exact",
- "fallback",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "prodcom_code",
- "description",
- "status",
- "original_prodcom_code_fmt"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "reason": {
- "type": "null"
- }
- },
- "required": [
- "available",
- "reason",
- "prodcom_codes"
- ],
- "type": "object"
- },
- "resolved_code": {
- "type": "string"
- },
- "resolved_label": {
- "type": "string"
- }
- },
- "required": [
- "prodcom_mapping",
- "is_bundling_heading",
- "customs_code",
- "resolved_code",
- "resolved_label",
- "levels",
- "data_coverage"
- ],
- "type": "object"
- },
- "reason": {
- "default": null,
- "type": "null"
- }
- },
- "required": [
- "narrative_facts",
- "chart_data",
- "links"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "available": {
- "const": true,
- "default": true,
- "type": "boolean"
- },
- "chart_data": {
- "additionalProperties": false,
- "description": "An object that must be empty: the bridge sends ``{}`` for it.",
- "properties": {},
- "type": "object"
- },
- "links": {
- "additionalProperties": false,
- "properties": {
- "resolved_label": {
- "type": "string"
- }
- },
- "required": [
- "resolved_label"
- ],
- "type": "object"
- },
- "narrative_facts": {
- "additionalProperties": false,
- "properties": {
- "customs_code": {
- "type": "string"
- },
- "data_coverage": {
- "additionalProperties": false,
- "properties": {
- "data_max": {
- "description": "The last month with data inside the window ('YYYY-MM').",
- "pattern": "\\d{4}-\\d{2}",
- "type": "string"
- },
- "data_min": {
- "description": "The first month with data inside the window ('YYYY-MM').",
- "pattern": "\\d{4}-\\d{2}",
- "type": "string"
- }
- },
- "required": [
- "data_min",
- "data_max"
- ],
- "type": "object"
- },
- "is_bundling_heading": {
- "const": false,
- "type": "boolean"
- },
- "levels": {
- "items": {
- "additionalProperties": false,
- "description": "One level of a customs code's description hierarchy, chapter first\n(``ComextNomenclature.get_description_levels``, plus the synthetic\nlevels of residual spellings and the dated levels of former editions).\n\nThe optional flags are sparse on the wire: present when true, absent\notherwise (the shape of the nomenclature layer's raw dicts).",
- "properties": {
- "customs_code": {
- "description": "The level's customs code.",
- "type": "string"
- },
- "is_catch_all": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "True for a catch-all ('other') level."
- },
- "residual": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "True for the synthetic level of a residual spelling."
- },
- "segment": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "True for a historical segment's own definition."
- },
- "siblings": {
- "anyOf": [
- {
- "items": {
- "additionalProperties": false,
- "properties": {
- "customs_code": {
- "description": "A canonical customs code, TOTAL, or a supported residual spelling.",
- "type": "string"
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "customs_code",
- "text"
- ],
- "type": "object"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "For a catch-all level, the ordinary siblings it excludes."
- },
- "text": {
- "description": "The level's label, in the requested language.",
- "type": "string"
- },
- "untranslated": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "True when the label fell back to English."
- },
- "window": {
- "anyOf": [
- {
- "additionalProperties": false,
- "description": "The validity window of one customs-code segment (one definition).",
- "properties": {
- "valid_from": {
- "description": "First day of the window, ISO date.",
- "type": "string"
- },
- "valid_to": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Last day of the window, ISO date; null while in force."
- }
- },
- "required": [
- "valid_from",
- "valid_to"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "For a level read from a dated edition (a former definition, or one of its ancestors as that edition had them): the validity window of the definition shown. Absent for current-edition levels."
- }
- },
- "required": [
- "customs_code",
- "text"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "resolved_code": {
- "type": "string"
- },
- "resolved_label": {
- "type": "string"
- }
- },
- "required": [
- "is_bundling_heading",
- "customs_code",
- "resolved_code",
- "resolved_label",
- "levels",
- "data_coverage"
- ],
- "type": "object"
- },
- "reason": {
- "default": null,
- "type": "null"
- }
- },
- "required": [
- "narrative_facts",
- "chart_data",
- "links"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "A section whose upstream sources failed: the reason, empty slots\nelsewhere (the envelope keys stay stable for MCP consumers).",
- "properties": {
- "available": {
- "const": false,
- "default": false,
- "type": "boolean"
- },
- "chart_data": {
- "additionalProperties": false,
- "description": "An object that must be empty: the bridge sends ``{}`` for it.",
- "properties": {},
- "type": "object"
- },
- "links": {
- "additionalProperties": false,
- "description": "An object that must be empty: the bridge sends ``{}`` for it.",
- "properties": {},
- "type": "object"
- },
- "narrative_facts": {
- "additionalProperties": false,
- "description": "An object that must be empty: the bridge sends ``{}`` for it.",
- "properties": {},
- "type": "object"
- },
- "reason": {
- "type": "string"
- }
- },
- "required": [
- "reason"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "available": {
+ "const": true,
+ "default": true,
+ "type": "boolean"
+ },
+ "chart_data": {
+ "additionalProperties": false,
+ "description": "An object that must be empty: the bridge sends ``{}`` for it.",
+ "properties": {},
+ "type": "object"
+ },
+ "links": {
+ "additionalProperties": false,
+ "properties": {
+ "resolved_label": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "resolved_label"
+ ],
+ "type": "object"
+ },
+ "narrative_facts": {
+ "additionalProperties": false,
+ "properties": {
+ "bundled_children": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "customs_code": {
+ "description": "A canonical customs code, TOTAL, or a supported residual spelling.",
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "customs_code",
+ "text"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "customs_code": {
+ "type": "string"
+ },
+ "data_coverage": {
+ "additionalProperties": false,
+ "properties": {
+ "data_max": {
+ "description": "The last month with data inside the window ('YYYY-MM').",
+ "pattern": "\\d{4}-\\d{2}",
+ "type": "string"
+ },
+ "data_min": {
+ "description": "The first month with data inside the window ('YYYY-MM').",
+ "pattern": "\\d{4}-\\d{2}",
+ "type": "string"
+ }
+ },
+ "required": [
+ "data_min",
+ "data_max"
+ ],
+ "type": "object"
+ },
+ "is_bundling_heading": {
+ "const": true,
+ "type": "boolean"
+ },
+ "levels": {
+ "items": {
+ "additionalProperties": false,
+ "description": "One level of a customs code's description hierarchy, chapter first\n(``ComextNomenclature.get_description_levels``, plus the synthetic\nlevels of residual spellings and the dated levels of former editions).\n\nThe optional flags are sparse on the wire: present when true, absent\notherwise (the shape of the nomenclature layer's raw dicts).",
+ "properties": {
+ "customs_code": {
+ "description": "The level's customs code.",
+ "type": "string"
+ },
+ "is_catch_all": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True for a catch-all ('other') level."
+ },
+ "residual": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True for the synthetic level of a residual spelling."
+ },
+ "segment": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True for a historical segment's own definition."
+ },
+ "siblings": {
+ "anyOf": [
+ {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "customs_code": {
+ "description": "A canonical customs code, TOTAL, or a supported residual spelling.",
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "customs_code",
+ "text"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "For a catch-all level, the ordinary siblings it excludes."
+ },
+ "text": {
+ "description": "The level's label, in the requested language.",
+ "type": "string"
+ },
+ "untranslated": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True when the label fell back to English."
+ },
+ "window": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "description": "The validity window of one customs-code segment (one definition).",
+ "properties": {
+ "valid_from": {
+ "description": "First day of the window, ISO date.",
+ "type": "string"
+ },
+ "valid_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Last day of the window, ISO date; null while in force."
+ }
+ },
+ "required": [
+ "valid_from",
+ "valid_to"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "For a level read from a dated edition (a former definition, or one of its ancestors as that edition had them): the validity window of the definition shown. Absent for current-edition levels."
+ }
+ },
+ "required": [
+ "customs_code",
+ "text"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "prodcom_mapping": {
+ "additionalProperties": false,
+ "description": "The PRODCOM mapping, present for the codes PRODCOM covers.",
+ "properties": {
+ "available": {
+ "type": "boolean"
+ },
+ "prodcom_codes": {
+ "items": {
+ "additionalProperties": false,
+ "description": "One distinct data-bearing PRODCOM code of the code picker\n(``ProdcomNomenclature.deduplicate_resolved``): several mapped codes that\ncollapse onto the same aggregate appear once.",
+ "properties": {
+ "description": {
+ "description": "The code's label.",
+ "type": "string"
+ },
+ "original_prodcom_code_fmt": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The mapped dotted forms that fell back to this code (comma-joined); None for exact codes."
+ },
+ "prodcom_code": {
+ "description": "The data-bearing PRODCOM code, in dotted form on the wire.",
+ "examples": [
+ "23.99.14",
+ "24.10.T3.40"
+ ],
+ "type": "string"
+ },
+ "status": {
+ "description": "'exact' when the data-bearing code is a mapped code's own level, 'fallback' otherwise.",
+ "enum": [
+ "exact",
+ "fallback",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "prodcom_code",
+ "description",
+ "status",
+ "original_prodcom_code_fmt"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "null"
+ }
+ },
+ "required": [
+ "available",
+ "reason",
+ "prodcom_codes"
+ ],
+ "type": "object"
+ },
+ "resolved_code": {
+ "type": "string"
+ },
+ "resolved_label": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "prodcom_mapping",
+ "is_bundling_heading",
+ "bundled_children",
+ "customs_code",
+ "resolved_code",
+ "resolved_label",
+ "levels",
+ "data_coverage"
+ ],
+ "type": "object"
+ },
+ "reason": {
+ "default": null,
+ "type": "null"
+ }
+ },
+ "required": [
+ "narrative_facts",
+ "chart_data",
+ "links",
+ "available",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "available": {
+ "const": true,
+ "default": true,
+ "type": "boolean"
+ },
+ "chart_data": {
+ "additionalProperties": false,
+ "description": "An object that must be empty: the bridge sends ``{}`` for it.",
+ "properties": {},
+ "type": "object"
+ },
+ "links": {
+ "additionalProperties": false,
+ "properties": {
+ "resolved_label": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "resolved_label"
+ ],
+ "type": "object"
+ },
+ "narrative_facts": {
+ "additionalProperties": false,
+ "properties": {
+ "bundled_children": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "customs_code": {
+ "description": "A canonical customs code, TOTAL, or a supported residual spelling.",
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "customs_code",
+ "text"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "customs_code": {
+ "type": "string"
+ },
+ "data_coverage": {
+ "additionalProperties": false,
+ "properties": {
+ "data_max": {
+ "description": "The last month with data inside the window ('YYYY-MM').",
+ "pattern": "\\d{4}-\\d{2}",
+ "type": "string"
+ },
+ "data_min": {
+ "description": "The first month with data inside the window ('YYYY-MM').",
+ "pattern": "\\d{4}-\\d{2}",
+ "type": "string"
+ }
+ },
+ "required": [
+ "data_min",
+ "data_max"
+ ],
+ "type": "object"
+ },
+ "is_bundling_heading": {
+ "const": true,
+ "type": "boolean"
+ },
+ "levels": {
+ "items": {
+ "additionalProperties": false,
+ "description": "One level of a customs code's description hierarchy, chapter first\n(``ComextNomenclature.get_description_levels``, plus the synthetic\nlevels of residual spellings and the dated levels of former editions).\n\nThe optional flags are sparse on the wire: present when true, absent\notherwise (the shape of the nomenclature layer's raw dicts).",
+ "properties": {
+ "customs_code": {
+ "description": "The level's customs code.",
+ "type": "string"
+ },
+ "is_catch_all": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True for a catch-all ('other') level."
+ },
+ "residual": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True for the synthetic level of a residual spelling."
+ },
+ "segment": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True for a historical segment's own definition."
+ },
+ "siblings": {
+ "anyOf": [
+ {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "customs_code": {
+ "description": "A canonical customs code, TOTAL, or a supported residual spelling.",
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "customs_code",
+ "text"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "For a catch-all level, the ordinary siblings it excludes."
+ },
+ "text": {
+ "description": "The level's label, in the requested language.",
+ "type": "string"
+ },
+ "untranslated": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True when the label fell back to English."
+ },
+ "window": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "description": "The validity window of one customs-code segment (one definition).",
+ "properties": {
+ "valid_from": {
+ "description": "First day of the window, ISO date.",
+ "type": "string"
+ },
+ "valid_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Last day of the window, ISO date; null while in force."
+ }
+ },
+ "required": [
+ "valid_from",
+ "valid_to"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "For a level read from a dated edition (a former definition, or one of its ancestors as that edition had them): the validity window of the definition shown. Absent for current-edition levels."
+ }
+ },
+ "required": [
+ "customs_code",
+ "text"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "resolved_code": {
+ "type": "string"
+ },
+ "resolved_label": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "is_bundling_heading",
+ "bundled_children",
+ "customs_code",
+ "resolved_code",
+ "resolved_label",
+ "levels",
+ "data_coverage"
+ ],
+ "type": "object"
+ },
+ "reason": {
+ "default": null,
+ "type": "null"
+ }
+ },
+ "required": [
+ "narrative_facts",
+ "chart_data",
+ "links",
+ "available",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "available": {
+ "const": true,
+ "default": true,
+ "type": "boolean"
+ },
+ "chart_data": {
+ "additionalProperties": false,
+ "description": "An object that must be empty: the bridge sends ``{}`` for it.",
+ "properties": {},
+ "type": "object"
+ },
+ "links": {
+ "additionalProperties": false,
+ "properties": {
+ "resolved_label": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "resolved_label"
+ ],
+ "type": "object"
+ },
+ "narrative_facts": {
+ "additionalProperties": false,
+ "properties": {
+ "customs_code": {
+ "type": "string"
+ },
+ "data_coverage": {
+ "additionalProperties": false,
+ "properties": {
+ "data_max": {
+ "description": "The last month with data inside the window ('YYYY-MM').",
+ "pattern": "\\d{4}-\\d{2}",
+ "type": "string"
+ },
+ "data_min": {
+ "description": "The first month with data inside the window ('YYYY-MM').",
+ "pattern": "\\d{4}-\\d{2}",
+ "type": "string"
+ }
+ },
+ "required": [
+ "data_min",
+ "data_max"
+ ],
+ "type": "object"
+ },
+ "is_bundling_heading": {
+ "const": false,
+ "type": "boolean"
+ },
+ "levels": {
+ "items": {
+ "additionalProperties": false,
+ "description": "One level of a customs code's description hierarchy, chapter first\n(``ComextNomenclature.get_description_levels``, plus the synthetic\nlevels of residual spellings and the dated levels of former editions).\n\nThe optional flags are sparse on the wire: present when true, absent\notherwise (the shape of the nomenclature layer's raw dicts).",
+ "properties": {
+ "customs_code": {
+ "description": "The level's customs code.",
+ "type": "string"
+ },
+ "is_catch_all": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True for a catch-all ('other') level."
+ },
+ "residual": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True for the synthetic level of a residual spelling."
+ },
+ "segment": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True for a historical segment's own definition."
+ },
+ "siblings": {
+ "anyOf": [
+ {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "customs_code": {
+ "description": "A canonical customs code, TOTAL, or a supported residual spelling.",
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "customs_code",
+ "text"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "For a catch-all level, the ordinary siblings it excludes."
+ },
+ "text": {
+ "description": "The level's label, in the requested language.",
+ "type": "string"
+ },
+ "untranslated": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True when the label fell back to English."
+ },
+ "window": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "description": "The validity window of one customs-code segment (one definition).",
+ "properties": {
+ "valid_from": {
+ "description": "First day of the window, ISO date.",
+ "type": "string"
+ },
+ "valid_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Last day of the window, ISO date; null while in force."
+ }
+ },
+ "required": [
+ "valid_from",
+ "valid_to"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "For a level read from a dated edition (a former definition, or one of its ancestors as that edition had them): the validity window of the definition shown. Absent for current-edition levels."
+ }
+ },
+ "required": [
+ "customs_code",
+ "text"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "prodcom_mapping": {
+ "additionalProperties": false,
+ "description": "The PRODCOM mapping, present for the codes PRODCOM covers.",
+ "properties": {
+ "available": {
+ "type": "boolean"
+ },
+ "prodcom_codes": {
+ "items": {
+ "additionalProperties": false,
+ "description": "One distinct data-bearing PRODCOM code of the code picker\n(``ProdcomNomenclature.deduplicate_resolved``): several mapped codes that\ncollapse onto the same aggregate appear once.",
+ "properties": {
+ "description": {
+ "description": "The code's label.",
+ "type": "string"
+ },
+ "original_prodcom_code_fmt": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The mapped dotted forms that fell back to this code (comma-joined); None for exact codes."
+ },
+ "prodcom_code": {
+ "description": "The data-bearing PRODCOM code, in dotted form on the wire.",
+ "examples": [
+ "23.99.14",
+ "24.10.T3.40"
+ ],
+ "type": "string"
+ },
+ "status": {
+ "description": "'exact' when the data-bearing code is a mapped code's own level, 'fallback' otherwise.",
+ "enum": [
+ "exact",
+ "fallback",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "prodcom_code",
+ "description",
+ "status",
+ "original_prodcom_code_fmt"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "null"
+ }
+ },
+ "required": [
+ "available",
+ "reason",
+ "prodcom_codes"
+ ],
+ "type": "object"
+ },
+ "resolved_code": {
+ "type": "string"
+ },
+ "resolved_label": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "prodcom_mapping",
+ "is_bundling_heading",
+ "customs_code",
+ "resolved_code",
+ "resolved_label",
+ "levels",
+ "data_coverage"
+ ],
+ "type": "object"
+ },
+ "reason": {
+ "default": null,
+ "type": "null"
+ }
+ },
+ "required": [
+ "narrative_facts",
+ "chart_data",
+ "links",
+ "available",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "available": {
+ "const": true,
+ "default": true,
+ "type": "boolean"
+ },
+ "chart_data": {
+ "additionalProperties": false,
+ "description": "An object that must be empty: the bridge sends ``{}`` for it.",
+ "properties": {},
+ "type": "object"
+ },
+ "links": {
+ "additionalProperties": false,
+ "properties": {
+ "resolved_label": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "resolved_label"
+ ],
+ "type": "object"
+ },
+ "narrative_facts": {
+ "additionalProperties": false,
+ "properties": {
+ "customs_code": {
+ "type": "string"
+ },
+ "data_coverage": {
+ "additionalProperties": false,
+ "properties": {
+ "data_max": {
+ "description": "The last month with data inside the window ('YYYY-MM').",
+ "pattern": "\\d{4}-\\d{2}",
+ "type": "string"
+ },
+ "data_min": {
+ "description": "The first month with data inside the window ('YYYY-MM').",
+ "pattern": "\\d{4}-\\d{2}",
+ "type": "string"
+ }
+ },
+ "required": [
+ "data_min",
+ "data_max"
+ ],
+ "type": "object"
+ },
+ "is_bundling_heading": {
+ "const": false,
+ "type": "boolean"
+ },
+ "levels": {
+ "items": {
+ "additionalProperties": false,
+ "description": "One level of a customs code's description hierarchy, chapter first\n(``ComextNomenclature.get_description_levels``, plus the synthetic\nlevels of residual spellings and the dated levels of former editions).\n\nThe optional flags are sparse on the wire: present when true, absent\notherwise (the shape of the nomenclature layer's raw dicts).",
+ "properties": {
+ "customs_code": {
+ "description": "The level's customs code.",
+ "type": "string"
+ },
+ "is_catch_all": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True for a catch-all ('other') level."
+ },
+ "residual": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True for the synthetic level of a residual spelling."
+ },
+ "segment": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True for a historical segment's own definition."
+ },
+ "siblings": {
+ "anyOf": [
+ {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "customs_code": {
+ "description": "A canonical customs code, TOTAL, or a supported residual spelling.",
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "customs_code",
+ "text"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "For a catch-all level, the ordinary siblings it excludes."
+ },
+ "text": {
+ "description": "The level's label, in the requested language.",
+ "type": "string"
+ },
+ "untranslated": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True when the label fell back to English."
+ },
+ "window": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "description": "The validity window of one customs-code segment (one definition).",
+ "properties": {
+ "valid_from": {
+ "description": "First day of the window, ISO date.",
+ "type": "string"
+ },
+ "valid_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Last day of the window, ISO date; null while in force."
+ }
+ },
+ "required": [
+ "valid_from",
+ "valid_to"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "For a level read from a dated edition (a former definition, or one of its ancestors as that edition had them): the validity window of the definition shown. Absent for current-edition levels."
+ }
+ },
+ "required": [
+ "customs_code",
+ "text"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "resolved_code": {
+ "type": "string"
+ },
+ "resolved_label": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "is_bundling_heading",
+ "customs_code",
+ "resolved_code",
+ "resolved_label",
+ "levels",
+ "data_coverage"
+ ],
+ "type": "object"
+ },
+ "reason": {
+ "default": null,
+ "type": "null"
+ }
+ },
+ "required": [
+ "narrative_facts",
+ "chart_data",
+ "links",
+ "available",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "A section whose upstream sources failed: the reason, empty slots\nelsewhere (the envelope keys stay stable for MCP consumers).",
+ "properties": {
+ "available": {
+ "const": false,
+ "default": false,
+ "type": "boolean"
+ },
+ "chart_data": {
+ "additionalProperties": false,
+ "description": "An object that must be empty: the bridge sends ``{}`` for it.",
+ "properties": {},
+ "type": "object"
+ },
+ "links": {
+ "additionalProperties": false,
+ "description": "An object that must be empty: the bridge sends ``{}`` for it.",
+ "properties": {},
+ "type": "object"
+ },
+ "narrative_facts": {
+ "additionalProperties": false,
+ "description": "An object that must be empty: the bridge sends ``{}`` for it.",
+ "properties": {},
+ "type": "object"
+ },
+ "reason": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "narrative_facts",
+ "chart_data",
+ "links",
+ "available",
+ "reason"
+ ],
+ "type": "object"
+ }
+]