{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/carbon-arc/json-schema/carbon-arc-graph-sources-response-schema.json",
  "title": "GraphSourcesResponse",
  "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/GraphSourcesResponse",
  "properties": {
    "page": {
      "type": "integer",
      "title": "Page"
    },
    "size": {
      "type": "integer",
      "title": "Size"
    },
    "total_pages": {
      "type": "integer",
      "title": "Total Pages"
    },
    "datasources": {
      "items": {
        "$ref": "#/$defs/GraphSource"
      },
      "type": "array",
      "title": "Datasources"
    }
  },
  "type": "object",
  "required": [
    "page",
    "size",
    "total_pages",
    "datasources"
  ],
  "$defs": {
    "GraphSource": {
      "properties": {
        "provider_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Provider Name"
        },
        "graph_name": {
          "type": "string",
          "title": "Graph Name"
        },
        "graph_id": {
          "type": "integer",
          "title": "Graph Id"
        },
        "dataset_id": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Dataset Id"
        },
        "dataset_name": {
          "type": "string",
          "title": "Dataset Name"
        },
        "description": {
          "type": "string",
          "title": "Description"
        },
        "blocked": {
          "type": "boolean",
          "title": "Blocked"
        },
        "last_updated_timestamp": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Updated Timestamp"
        },
        "is_current": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Is Current"
        },
        "exportformat": {
          "type": "string",
          "title": "Exportformat"
        },
        "carc_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Carc Id"
        },
        "category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Category"
        },
        "subcategory": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Subcategory"
        },
        "ecosystem_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ecosystem Type"
        },
        "data": {
          "anyOf": [
            {
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "subject_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Subject Id"
        },
        "subject_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Subject Label"
        },
        "has_confidence_report": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Has Confidence Report"
        },
        "path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Path"
        },
        "price": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Price"
        }
      },
      "type": "object",
      "required": [
        "graph_name",
        "graph_id",
        "dataset_id",
        "dataset_name",
        "description",
        "blocked",
        "exportformat"
      ],
      "title": "GraphSource"
    }
  }
}