{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/power-bi/json-schema/power-bi-gateway-datasource-list-schema.json",
  "title": "GatewayDatasourceList",
  "description": "A list of gateway data sources",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/power-bi-gateways-api-openapi.yml#/components/schemas/GatewayDatasourceList",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GatewayDatasource"
      }
    },
    "@odata.context": {
      "type": "string"
    }
  },
  "$defs": {
    "GatewayDatasource": {
      "type": "object",
      "description": "A data source on a gateway",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "The unique identifier of the data source"
        },
        "gatewayId": {
          "type": "string",
          "format": "uuid",
          "description": "The gateway this data source belongs to"
        },
        "datasourceType": {
          "type": "string",
          "description": "The type of data source"
        },
        "connectionDetails": {
          "type": "string",
          "description": "JSON string with connection details"
        },
        "credentialType": {
          "type": "string",
          "description": "The credential type used for authentication",
          "enum": [
            "Basic",
            "Windows",
            "Anonymous",
            "OAuth2",
            "Key"
          ]
        },
        "datasourceName": {
          "type": "string",
          "description": "The display name of the data source"
        }
      }
    }
  }
}