{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/observeinc/json-schema/observeinc-dataset-legacy-resource-schema.json",
  "title": "DatasetLegacy-Resource",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/observeinc-dataset-legacy-api-openapi.yml#/components/schemas/DatasetLegacy-Resource",
  "type": "object",
  "required": [
    "meta",
    "config",
    "state"
  ],
  "properties": {
    "meta": {
      "type": "object",
      "description": "Metadata about the dataset.",
      "required": [
        "id",
        "workspaceId",
        "customerId"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "workspaceId": {
          "type": "string",
          "format": "int64"
        },
        "customerId": {
          "type": "string",
          "format": "int64"
        }
      }
    },
    "config": {
      "description": "Directly settable properties of the dataset.",
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string"
        }
      }
    },
    "state": {
      "description": "Implicitly derived state of the dataset.",
      "type": "object",
      "required": [
        "urlPath",
        "kind",
        "createdBy",
        "createdDate",
        "updatedBy",
        "updatedDate"
      ],
      "properties": {
        "urlPath": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "createdBy": {
          "type": "string",
          "format": "int64"
        },
        "createdDate": {
          "type": "string",
          "format": "date-time"
        },
        "updatedBy": {
          "type": "string",
          "format": "int64"
        },
        "updatedDate": {
          "type": "string",
          "format": "date-time"
        },
        "columns": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "name",
              "type"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            }
          }
        },
        "interfaces": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "path": {
                "type": "string"
              },
              "mapping": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  }
}