removedInput schema / properties / classification / enum
Removed value: -[
- "HS",
- "H0",
- "H1",
- "H2",
- "H3",
- "H4",
- "H5",
- "H6",
- "S1",
- "S2",
- "S3",
- "S4",
- "SS"
-]
addedInput schema / properties / cmd_code / items / pattern
Added value: +"^(?:[A-Z0-9]+(?:\\.[A-Z0-9]+)*)?$"
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"
-]
addedInput schema / properties / partner_code
Added value: +{
+ "default": 0,
+ "description": "M49 partner code (0–999); defaults to World (0). The balance uses the reporter’s values.",
+ "maximum": 999,
+ "minimum": 0,
+ "type": "integer"
+}
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])?$"
changedInput schema / properties / reporter_code / description
Previous value: -"M49 numeric code of the reporting country."New value: +"M49 numeric code of the reporting country (0–999)."
changedInput schema / properties / reporter_code / maximum
Previous value: -9007199254740991New value: +999
changedInput schema / properties / reporter_code / minimum
Previous value: --9007199254740991New value: +0
changedOutput schema / anyOf
Previous value: -[
- {
- "not": {
- "required": [
- "error"
- ]
- },
- "required": [
- "periods",
- "reporterCode",
- "reporterDesc",
- "mirrorCaveat"
- ]
- },
- {
- "required": [
- "error"
- ]
- }
-]New value: +[
+ {
+ "not": {
+ "required": [
+ "error"
+ ]
+ },
+ "required": [
+ "periods",
+ "reporterCode",
+ "reporterDesc",
+ "partnerCode",
+ "partnerDesc",
+ "mirrorCaveat"
+ ]
+ },
+ {
+ "required": [
+ "error"
+ ]
+ }
+]
changedOutput schema / properties / error / properties / data / properties / reason / description
Previous value: -"Machine-readable failure mode. Declared by this tool: `no_data`: No trade data available for the reporter and period combination. Other values are possible when a failure originates below the handler."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. `no_data`: No trade data available for the reporter and period combination. Other values are possible when a failure originates below the handler."
changedOutput schema / properties / error / properties / data / properties / reason / examples
Previous value: -[
- "no_data"
-]New value: +[
+ "keyless_hs_edition_unsupported",
+ "invalid_reporter_filter",
+ "upstream_validation",
+ "invalid_upstream_response",
+ "no_data"
+]
addedOutput schema / properties / partnerCode
Added value: +{
+ "description": "M49 partner code used.",
+ "type": "number"
+}
addedOutput schema / properties / partnerDesc
Added value: +{
+ "description": "Partner name supplied by the returned records, or its numeric code when unavailable.",
+ "type": "string"
+}