{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yunqi/json-schema/yunqi-data-source-list-response-schema.json",
  "title": "DataSourceListResponse",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yunqi-datasource-api-openapi.yml#/components/schemas/DataSourceListResponse",
  "type": "object",
  "properties": {
    "requestId": {
      "type": "string"
    },
    "success": {
      "type": "boolean"
    },
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "data": {
      "type": "object",
      "properties": {
        "pageNum": {
          "type": "integer"
        },
        "pageSize": {
          "type": "integer"
        },
        "pageCount": {
          "type": "integer"
        },
        "total": {
          "type": "integer",
          "format": "int64"
        },
        "list": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DataSourceMeta"
          }
        }
      },
      "required": [
        "list",
        "pageNum",
        "pageSize",
        "pageCount",
        "total"
      ]
    }
  },
  "required": [
    "requestId",
    "success",
    "code",
    "message"
  ],
  "$defs": {
    "DataSourceMeta": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "projectId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64"
        },
        "projectName": {
          "type": [
            "string",
            "null"
          ]
        },
        "tenantId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64"
        },
        "commonDsId": {
          "type": "integer",
          "format": "int64"
        },
        "dsName": {
          "type": [
            "string",
            "null"
          ]
        },
        "dsType": {
          "type": [
            "string",
            "null"
          ]
        },
        "dsDesc": {
          "type": "string"
        },
        "connectionParams": {
          "type": [
            "string",
            "null"
          ]
        },
        "testStatus": {
          "type": "integer"
        },
        "testFailedReason": {
          "type": "string"
        },
        "status": {
          "type": "integer"
        },
        "statusName": {
          "type": "string"
        },
        "createdBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdTime": {
          "type": [
            "string",
            "null"
          ]
        },
        "updatedBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "updatedTime": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id"
      ]
    }
  }
}