{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/carbon-arc/json-schema/carbon-arc-data-sources-response-schema.json",
  "title": "DataSourcesResponse",
  "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/DataSourcesResponse",
  "properties": {
    "page": {
      "type": "integer",
      "title": "Page"
    },
    "size": {
      "type": "integer",
      "title": "Size"
    },
    "total": {
      "type": "integer",
      "title": "Total"
    },
    "total_pages": {
      "type": "integer",
      "title": "Total Pages"
    },
    "datasources": {
      "items": {
        "$ref": "#/$defs/DataSource"
      },
      "type": "array",
      "title": "Datasources"
    }
  },
  "type": "object",
  "required": [
    "page",
    "size",
    "total",
    "total_pages",
    "datasources"
  ],
  "$defs": {
    "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"
      ],
      "title": "DataSource"
    }
  }
}