changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$defs": {
+ "dataset": {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "type": "object"
+ },
+ "datasetId": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "limitations": {
+ "$ref": "#/$defs/limitations"
+ },
+ "measurement": {
+ "$ref": "#/$defs/measurement"
+ },
+ "provenance": {
+ "$ref": "#/$defs/provenance"
+ },
+ "sourceStatus": {
+ "const": "official"
+ },
+ "temporalCoverage": {
+ "$ref": "#/$defs/temporalCoverage"
+ },
+ "topic": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "datasetId",
+ "topic",
+ "sourceStatus",
+ "measurement",
+ "temporalCoverage",
+ "provenance",
+ "data",
+ "limitations"
+ ],
+ "type": "object"
+ },
+ "exclusion": {
+ "additionalProperties": false,
+ "properties": {
+ "classification": {
+ "enum": [
+ "illustrative_or_constructed",
+ "licensed_conflict_data",
+ "out_of_scope",
+ "privacy_minimized",
+ "safety_minimized"
+ ]
+ },
+ "component": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "reason": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "component",
+ "classification",
+ "reason"
+ ],
+ "type": "object"
+ },
+ "geography": {
+ "additionalProperties": false,
+ "properties": {
+ "country": {
+ "enum": [
+ "China",
+ "Myanmar",
+ "Pakistan"
+ ]
+ },
+ "iso2": {
+ "enum": [
+ "CN",
+ "MM",
+ "PK"
+ ]
+ },
+ "iso3": {
+ "enum": [
+ "CHN",
+ "MMR",
+ "PAK"
+ ]
+ }
+ },
+ "required": [
+ "country",
+ "iso2",
+ "iso3"
+ ],
+ "type": "object"
+ },
+ "limitations": {
+ "items": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "measurement": {
+ "additionalProperties": false,
+ "properties": {
+ "grain": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "method": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "official_reported",
+ "official_action_record"
+ ]
+ },
+ "unit": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "valueType": {
+ "enum": [
+ "statistical_measurement",
+ "administrative_measurement",
+ "administrative_action"
+ ]
+ }
+ },
+ "required": [
+ "status",
+ "valueType",
+ "method",
+ "unit",
+ "grain"
+ ],
+ "type": "object"
+ },
+ "precursorData": {
+ "additionalProperties": false,
+ "properties": {
+ "contextRecords": {
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "corridors": {
+ "items": {
+ "$ref": "#/$defs/precursorRecord"
+ },
+ "type": "array"
+ },
+ "crossTargetBilateralRecordCount": {
+ "const": 0
+ },
+ "includedContextRecordCount": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "includedQuantitativeRecordCount": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "quantityAggregation": {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "status": {
+ "const": "not_computed_mixed_claim_semantics"
+ },
+ "summedQuantityKg": {
+ "const": null
+ }
+ },
+ "required": [
+ "status",
+ "summedQuantityKg",
+ "reason"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "includedQuantitativeRecordCount",
+ "includedContextRecordCount",
+ "crossTargetBilateralRecordCount",
+ "quantityAggregation",
+ "corridors",
+ "contextRecords"
+ ],
+ "type": "object"
+ },
+ "precursorRecord": {
+ "additionalProperties": false,
+ "properties": {
+ "aggregationEligibility": {
+ "enum": [
+ "eligible",
+ "ineligible_non_exact",
+ "ineligible_derived",
+ "ineligible_incompatible_basis"
+ ]
+ },
+ "aggregationGroup": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "destination": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "geographyMatches": {
+ "items": {
+ "enum": [
+ "CHN",
+ "MMR",
+ "PAK"
+ ]
+ },
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "incidentCount": {
+ "minimum": 1,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "precursor": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "quantityBasis": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "quantityKg": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "quantityRelation": {
+ "enum": [
+ "exact",
+ "approx",
+ "less_than",
+ "greater_than"
+ ]
+ },
+ "recordKind": {
+ "enum": [
+ "single_incident",
+ "multi_incident_aggregate",
+ "annual_aggregate",
+ "derived_subtotal"
+ ]
+ },
+ "reportedOrigin": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "seizureLocation": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "sourceLocator": {
+ "$ref": "#/$defs/sourceLocator"
+ },
+ "transit": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "year": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "geographyMatches",
+ "reportedOrigin",
+ "transit",
+ "destination",
+ "seizureLocation",
+ "year",
+ "precursor",
+ "quantityKg",
+ "quantityRelation",
+ "quantityBasis",
+ "recordKind",
+ "aggregationEligibility",
+ "aggregationGroup",
+ "incidentCount",
+ "sourceLocator"
+ ],
+ "type": "object"
+ },
+ "provenance": {
+ "additionalProperties": false,
+ "properties": {
+ "documentSha256": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "path": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "sha256": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "path",
+ "sha256"
+ ],
+ "type": "object"
+ },
+ "localDataDate": {
+ "format": "date",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "publisher": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "retrievedAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "sourceEdition": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "title": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "publisher",
+ "title",
+ "url",
+ "sourceEdition",
+ "localDataDate",
+ "input"
+ ],
+ "type": "object"
+ },
+ "sourceLocator": {
+ "additionalProperties": false,
+ "properties": {
+ "paragraph": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "pdfPage": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "printedPage": {
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "pdfPage",
+ "printedPage",
+ "paragraph"
+ ],
+ "type": "object"
+ },
+ "temporalCoverage": {
+ "additionalProperties": false,
+ "properties": {
+ "fromYear": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "kind": {
+ "enum": [
+ "year_range",
+ "snapshot"
+ ]
+ },
+ "snapshotDate": {
+ "format": "date",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "toYear": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "kind",
+ "fromYear",
+ "toYear",
+ "snapshotDate"
+ ],
+ "type": "object"
+ }
+ },
+ "$id": "urn:narcoscope:mcp-output:palimpsest-corridors:v2",
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "$schema": {
+ "const": "./narcoscope-palimpsest-corridors-v2.schema.json"
+ },
+ "artifactId": {
+ "const": "narcoscope.china-pakistan-myanmar.official-coverage"
+ },
+ "canonicalUrl": {
+ "format": "uri",
+ "pattern": "^https://",
+ "type": "string"
+ },
+ "dataAsOf": {
+ "format": "date",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "datasets": {
+ "additionalProperties": false,
+ "properties": {
+ "drugSeizures": {
+ "allOf": [
+ {
+ "$ref": "#/$defs/dataset"
+ },
+ {
+ "properties": {
+ "datasetId": {
+ "const": "drug_seizures"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ "ofacDesignations": {
+ "allOf": [
+ {
+ "$ref": "#/$defs/dataset"
+ },
+ {
+ "properties": {
+ "datasetId": {
+ "const": "ofac_designations"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ "precursorCorridorIncidents": {
+ "allOf": [
+ {
+ "$ref": "#/$defs/dataset"
+ },
+ {
+ "properties": {
+ "data": {
+ "$ref": "#/$defs/precursorData"
+ },
+ "datasetId": {
+ "const": "precursor_corridor_incidents"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ "retailDrugPrices": {
+ "allOf": [
+ {
+ "$ref": "#/$defs/dataset"
+ },
+ {
+ "properties": {
+ "datasetId": {
+ "const": "retail_drug_prices"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ "wildlifeConfiscations": {
+ "allOf": [
+ {
+ "$ref": "#/$defs/dataset"
+ },
+ {
+ "properties": {
+ "datasetId": {
+ "const": "wildlife_confiscations"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "required": [
+ "retailDrugPrices",
+ "drugSeizures",
+ "precursorCorridorIncidents",
+ "ofacDesignations",
+ "wildlifeConfiscations"
+ ],
+ "type": "object"
+ },
+ "disclosure": {
+ "additionalProperties": false,
+ "properties": {
+ "exactAddressDisclosure": {
+ "const": "none"
+ },
+ "identifierDisclosure": {
+ "const": "none"
+ },
+ "illustrativeDataIncluded": {
+ "const": false
+ },
+ "joinPolicy": {
+ "const": "geography_and_time_only"
+ },
+ "level": {
+ "const": "public_country_aggregate"
+ },
+ "politicalOrArmedActorInference": {
+ "const": "prohibited"
+ },
+ "preciseCoordinateDisclosure": {
+ "const": "none"
+ },
+ "runtimeCoupling": {
+ "const": "none_static_artifact"
+ },
+ "sourcePolicy": {
+ "const": "official_only"
+ },
+ "subjectEntityDisclosure": {
+ "const": "none"
+ }
+ },
+ "required": [
+ "level",
+ "sourcePolicy",
+ "subjectEntityDisclosure",
+ "exactAddressDisclosure",
+ "preciseCoordinateDisclosure",
+ "identifierDisclosure",
+ "illustrativeDataIncluded",
+ "runtimeCoupling",
+ "joinPolicy",
+ "politicalOrArmedActorInference"
+ ],
+ "type": "object"
+ },
+ "exclusions": {
+ "items": {
+ "$ref": "#/$defs/exclusion"
+ },
+ "minItems": 5,
+ "type": "array"
+ },
+ "geographies": {
+ "items": {
+ "$ref": "#/$defs/geography"
+ },
+ "maxItems": 3,
+ "minItems": 3,
+ "type": "array"
+ },
+ "interpretation": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "limitations": {
+ "$ref": "#/$defs/limitations"
+ },
+ "schemaVersion": {
+ "const": "narcoscope.palimpsest.corridor-aggregate.v2"
+ }
+ },
+ "required": [
+ "$schema",
+ "schemaVersion",
+ "artifactId",
+ "dataAsOf",
+ "geographies",
+ "disclosure",
+ "datasets",
+ "exclusions",
+ "limitations",
+ "canonicalUrl",
+ "interpretation"
+ ],
+ "title": "NarcoScope public China-Pakistan-Myanmar aggregate for Palimpsest",
+ "type": "object"
+}