{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/statisticsoftheworld-com/json-schema/statisticsoftheworld-com-recorded-economic-state-schema.json",
  "title": "RecordedEconomicState",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/statisticsoftheworld-com-openapi.yml#/components/schemas/RecordedEconomicState",
  "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"
        }
      }
    }
  }
}