{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "schema_version": {
      "type": "string",
      "const": "1.0.0"
    },
    "datasets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "asset_id": {
            "type": "string",
            "pattern": "^(?:[a-z0-9]+(?:-[a-z0-9]+)*\\/){3}[a-z0-9]+(?:-[a-z0-9]+)*$"
          },
          "table_name": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]*$"
          },
          "schema_ref": {
            "type": "string",
            "minLength": 1
          },
          "csv_url": {
            "type": "string",
            "minLength": 1
          },
          "parquet_url": {
            "type": "string",
            "minLength": 1
          },
          "version": {
            "type": "string",
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
          }
        },
        "required": [
          "asset_id",
          "table_name",
          "schema_ref",
          "csv_url",
          "version"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "schema_version",
    "datasets"
  ],
  "additionalProperties": false
}
