{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fusio/main/json-schema/fusio-backend-connection-schema.json",
  "title": "Backend_Connection",
  "description": "This object represents a connection to an external system like i.e. a database, message-queue or client-sdk",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fusio-connection-api-openapi.yml#/components/schemas/Backend_Connection",
  "type": "object",
  "properties": {
    "id": {
      "description": "Unique identifier for the object",
      "type": "integer"
    },
    "name": {
      "description": "Unique name of the object",
      "type": "string"
    },
    "class": {
      "description": "Underlying class of this connection which returns a configured client connection i.e. database, message-queue or client-sdk",
      "type": "string"
    },
    "oauth2": {
      "description": "Indicates whether it is possible to start an OAuth2 authorization code flow on this connection",
      "type": "boolean"
    },
    "config": {
      "$ref": "#/$defs/Backend_ConnectionConfig"
    },
    "metadata": {
      "$ref": "#/$defs/Common_Metadata"
    }
  },
  "$defs": {
    "Backend_ConnectionConfig": {
      "description": "The connection configuration which contains arbitrary key-value entries",
      "type": "object",
      "additionalProperties": {}
    },
    "Common_Metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  }
}