changedInput schema / properties / classification / description
Previous value: -"Goods classification: HS/H0–H6 or SITC S1–S4/SS. Defaults to combined HS."New value: +"Goods classification: HS as reported, H0–H6 with authenticated access, or SITC S1–S4/SS."
removedInput schema / properties / classification / enum
Removed value: -[
- "HS",
- "H0",
- "H1",
- "H2",
- "H3",
- "H4",
- "H5",
- "H6",
- "S1",
- "S2",
- "S3",
- "S4",
- "SS"
-]
changedInput schema / properties / cmd_code / description
Previous value: -"HS or SITC commodity codes to query. Serves the first 20 codes and discloses the remainder; input ceiling 200. Pass [\"TOTAL\"] or omit to aggregate all commodities. Use comtrade_search_commodities for HS codes only."New value: +"HS or SITC commodity codes to query. Serves the first 20 codes and discloses the remainder; input ceiling 200. Pass [\"TOTAL\"] or omit to aggregate all commodities. Use comtrade_search_commodities for codes in the selected HS or SITC edition."
addedInput schema / properties / cmd_code / items / pattern
Added value: +"^(?:[A-Z0-9]+(?:\\.[A-Z0-9]+)*)?$"
removedInput schema / properties / flow_code / enum
Removed value: -[
- "M",
- "X",
- "RX",
- "RM"
-]
changedInput schema / properties / freq / description
Previous value: -"Frequency: A=annual, M=monthly."New value: +"Frequency: A=annual YYYY, M=monthly YYYYMM (01–12)."
removedInput schema / properties / freq / enum
Removed value: -[
- "A",
- "M"
-]
changedInput schema / properties / partner_code / maximum
Previous value: -9007199254740991New value: +999
changedInput schema / properties / partner_code / minimum
Previous value: --9007199254740991New value: +0
removedInput schema / properties / period / items / minLength
Removed value: -4
addedInput schema / properties / period / items / pattern
Added value: +"^[0-9]{4}(?:0[1-9]|1[0-2])?$"
addedInput schema / properties / reporter_code / anyOf
Added value: +[
+ {
+ "description": "One M49 reporter code.",
+ "maximum": 999,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "description": "Reporter codes to query together.",
+ "items": {
+ "maximum": 999,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maxItems": 200,
+ "minItems": 1,
+ "type": "array"
+ }
+]
changedInput schema / properties / reporter_code / description
Previous value: -"M49 numeric code of the reporting country. Use comtrade_lookup_countries to resolve names to codes."New value: +"M49 reporter code or nonempty array (input ceiling 200). Deduplicates and serves the first 20 reporters, disclosing the remainder. Omit only with an explicit partner_code to query all reporters."
removedInput schema / properties / reporter_code / maximum
Removed value: -9007199254740991
removedInput schema / properties / reporter_code / minimum
Removed value: --9007199254740991
removedInput schema / properties / reporter_code / type
Removed value: -"integer"
changedInput schema / required
Previous value: -[
- "reporter_code",
- "flow_code",
- "period"
-]New value: +[
+ "flow_code",
+ "period"
+]
changedOutput schema / properties / error / properties / data / properties / reason / description
Previous value: -"Machine-readable failure mode."New value: +"Machine-readable failure mode. Declared by this tool: `keyless_hs_edition_unsupported`: Explicit HS editions require authenticated data access. `invalid_reporter_filter`: Reporter omission lacks an explicit partner. `upstream_validation`: UN Comtrade rejects the query dimensions. `invalid_upstream_response`: UN Comtrade returns malformed trade data. Other values are possible when a failure originates below the handler."
addedOutput schema / properties / error / properties / data / properties / reason / examples
Added value: +[
+ "keyless_hs_edition_unsupported",
+ "invalid_reporter_filter",
+ "upstream_validation",
+ "invalid_upstream_response"
+]
addedOutput schema / properties / records / items / properties / altQty
Added value: +{
+ "description": "Alternate quantity, in its own unit.",
+ "type": "number"
+}
addedOutput schema / properties / records / items / properties / altQtyUnitAbbr
Added value: +{
+ "description": "Alternate quantity unit abbreviation.",
+ "type": "string"
+}
addedOutput schema / properties / records / items / properties / altQtyUnitCode
Added value: +{
+ "description": "Alternate quantity unit code.",
+ "type": "number"
+}
addedOutput schema / properties / records / items / properties / classificationCode
Added value: +{
+ "description": "Actual classification edition supplied by the row.",
+ "type": "string"
+}
addedOutput schema / properties / records / items / properties / isNetWgtEstimated
Added value: +{
+ "description": "Whether net weight is estimated.",
+ "type": "boolean"
+}
addedOutput schema / properties / records / items / properties / isQtyEstimated
Added value: +{
+ "description": "Whether quantity is estimated.",
+ "type": "boolean"
+}
addedOutput schema / properties / records / items / properties / qtyUnitAbbr
Added value: +{
+ "description": "Quantity unit abbreviation supplied or resolved from the unit catalog.",
+ "type": "string"
+}
addedOutput schema / properties / records / items / properties / qtyUnitCode
Added value: +{
+ "description": "Quantity unit code; -1 means unavailable.",
+ "type": "number"
+}
addedOutput schema / properties / unservedReporters
Added value: +{
+ "description": "Reporter codes beyond the 20-reporter work cap; query them separately.",
+ "items": {
+ "type": "number"
+ },
+ "type": "array"
+}