{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/statisticsoftheworld-com/json-schema/statisticsoftheworld-com-economic-export-manifest-schema.json",
  "title": "EconomicExportManifest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/statisticsoftheworld-com-openapi.yml#/components/schemas/EconomicExportManifest",
  "type": "object",
  "required": [
    "schema_version",
    "export_version",
    "generated_at",
    "series",
    "selection",
    "count",
    "truncated",
    "columns",
    "csv",
    "data_sha256",
    "evidence"
  ],
  "properties": {
    "schema_version": {
      "const": 1
    },
    "export_version": {
      "type": "string"
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "series": {
      "type": "object"
    },
    "selection": {
      "type": "object"
    },
    "count": {
      "type": "integer"
    },
    "truncated": {
      "const": false
    },
    "columns": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "csv": {
      "type": "object",
      "required": [
        "url",
        "sha256",
        "byte_count"
      ],
      "properties": {
        "url": {
          "type": "string"
        },
        "sha256": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "byte_count": {
          "type": "integer"
        }
      }
    },
    "data_sha256": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "data_hash_basis": {
      "type": "string"
    },
    "evidence": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "recorded_state": {
      "type": "object",
      "required": [
        "schemaVersion",
        "processingVersion",
        "coverageStart",
        "asOf",
        "revision",
        "readSemantics",
        "readSnapshot",
        "sourceAvailability",
        "commitAvailability",
        "publicationGeneration",
        "baselinePerSeries",
        "coverage",
        "currentRights"
      ],
      "properties": {
        "schemaVersion": {
          "const": 1
        },
        "processingVersion": {
          "const": "macro-journal-v1"
        },
        "coverageStart": {
          "type": "string",
          "format": "date-time"
        },
        "asOf": {
          "type": "string",
          "format": "date-time",
          "description": "Canonical UTC timestamp with exactly six fractional digits; preserve all six."
        },
        "revision": {
          "type": "string",
          "pattern": "^[1-9][0-9]{0,18}$"
        },
        "readSemantics": {
          "const": "transaction_final_recording_time"
        },
        "readSnapshot": {
          "const": "statement_start_committed_frames"
        },
        "sourceAvailability": {
          "const": "not_established"
        },
        "commitAvailability": {
          "const": "not_established"
        },
        "publicationGeneration": {
          "type": "string",
          "format": "uuid"
        },
        "baselinePerSeries": {
          "type": "object",
          "properties": {
            "origin": {
              "type": "string",
              "enum": [
                "activation_baseline",
                "first_qualified_publication"
              ]
            },
            "revision": {
              "type": "string"
            },
            "coverageStart": {
              "type": "string",
              "format": "date-time"
            }
          }
        },
        "coverage": {
          "type": "object"
        },
        "currentRights": {
          "type": "object",
          "properties": {
            "licence": {
              "type": "string"
            },
            "redistributionPermitted": {
              "const": true
            },
            "resalePermitted": {
              "type": "boolean"
            },
            "attributionText": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}