{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/carbon-arc/json-schema/carbon-arc-verify-dataset-access-response-schema.json",
  "title": "VerifyDatasetAccessResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/carbon-arc-polaris-api-openapi.yml#/components/schemas/VerifyDatasetAccessResponse",
  "properties": {
    "dataset_id": {
      "type": "string",
      "title": "Dataset Id"
    },
    "catalog": {
      "type": "string",
      "title": "Catalog"
    },
    "lag": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lag"
    },
    "cut": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cut"
    },
    "catalog_role": {
      "type": "string",
      "title": "Catalog Role"
    },
    "read_ok": {
      "type": "boolean",
      "title": "Read Ok",
      "description": "False when the Polaris read itself failed. present/missing are then empty, so do NOT read that as 'nobody has access'."
    },
    "present": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Present"
    },
    "missing": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Missing"
    },
    "checked_at": {
      "type": "string",
      "format": "date-time",
      "title": "Checked At"
    }
  },
  "type": "object",
  "required": [
    "dataset_id",
    "catalog",
    "lag",
    "cut",
    "catalog_role",
    "read_ok",
    "present",
    "missing",
    "checked_at"
  ]
}