{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/appsmith/json-schema/appsmith-datasource-schema.json",
  "title": "Datasource",
  "description": "A datasource connected to Appsmith applications",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/appsmith-data-sources-api-openapi.yml#/components/schemas/Datasource",
  "type": "object",
  "properties": {
    "datasourceId": {
      "type": "string",
      "description": "Unique datasource identifier"
    },
    "name": {
      "type": "string",
      "description": "Datasource name"
    },
    "type": {
      "type": "string",
      "description": "Datasource type (PostgreSQL, MySQL, REST API, etc.)"
    },
    "workspaceId": {
      "type": "string",
      "description": "Workspace the datasource belongs to"
    }
  }
}