{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://intelligence.metatron.marketing/datasets/atlas/r0056/metatron-atlas-package-profile.schema.json",
  "title": "Metatron Atlas dataset manifest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema",
    "datasetId",
    "version",
    "snapshotAsOf",
    "status",
    "records",
    "files",
    "rights",
    "provenance",
    "limitations"
  ],
  "properties": {
    "schema": {
      "const": "metatron.intelligence.atlas-dataset-manifest.v1"
    },
    "datasetId": {
      "const": "metatron-world-innovation-trend-atlas-public-metadata"
    },
    "version": {
      "type": "string",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
    },
    "snapshotAsOf": {
      "type": "string",
      "format": "date-time"
    },
    "status": {
      "const": "canonical_public_metadata_projection"
    },
    "records": {
      "type": "object"
    },
    "files": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "path",
          "mediaType",
          "bytes",
          "sha256"
        ],
        "properties": {
          "path": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._-]+$"
          },
          "mediaType": {
            "type": "string",
            "minLength": 1
          },
          "bytes": {
            "type": "integer",
            "minimum": 1
          },
          "sha256": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        }
      }
    },
    "rights": {
      "type": "object"
    },
    "provenance": {
      "type": "object"
    },
    "limitations": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string"
      }
    }
  }
}
