{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/carbon-arc/json-schema/carbon-arc-data-source-schema.json",
  "title": "DataSource",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/carbon-arc-data-library-api-openapi.yml#/components/schemas/DataSource",
  "properties": {
    "provider_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provider Name"
    },
    "dataset_name": {
      "type": "string",
      "title": "Dataset Name"
    },
    "dataset_id": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Dataset Id"
    },
    "description": {
      "type": "string",
      "title": "Description"
    },
    "blocked": {
      "type": "boolean",
      "title": "Blocked"
    },
    "last_updated_timestamp": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Updated Timestamp"
    },
    "data": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Data"
    },
    "is_current": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Current"
    },
    "label": {
      "type": "string",
      "title": "Label",
      "description": "Mirror of ``dataset_name`` so the data-library response uses the\nsame ``label`` key Block surfaces. Derived at serialize time —\nnothing to populate on the source dict.",
      "readOnly": true
    }
  },
  "type": "object",
  "required": [
    "dataset_name",
    "dataset_id",
    "description",
    "blocked",
    "label"
  ]
}