{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sifflet/json-schema/sifflet-public-create-databricks-source-v2-dto-schema.json",
  "title": "PublicCreateDatabricksSourceV2Dto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sifflet-sources-v2-api-openapi.yml#/components/schemas/PublicCreateDatabricksSourceV2Dto",
  "required": [
    "credentials",
    "databricksInformation",
    "name",
    "schedule",
    "type"
  ],
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/PublicCreateSourceV2Dto"
    },
    {
      "type": "object",
      "properties": {
        "credentials": {
          "type": "string",
          "description": "Credentials of the source"
        },
        "databricksInformation": {
          "$ref": "#/$defs/DatabricksInformation"
        },
        "schedule": {
          "type": [
            "string",
            "null"
          ],
          "description": "Schedule of the source. Supports CRON syntax. If empty, the source won't be scheduled."
        }
      }
    }
  ],
  "$defs": {
    "DatabricksInformation": {
      "required": [
        "host",
        "httpPath",
        "port"
      ],
      "type": "object",
      "properties": {
        "host": {
          "type": "string",
          "description": "Your Databricks server hostname"
        },
        "httpPath": {
          "type": "string",
          "description": "Your Databricks HTTP path"
        },
        "port": {
          "type": "integer",
          "description": "Your Databricks server port",
          "format": "int32"
        }
      },
      "description": "Databricks connection settings"
    },
    "PublicCreateSourceV2Dto": {
      "required": [
        "name",
        "type"
      ],
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the source"
        },
        "type": {
          "type": "string",
          "description": "Source type",
          "enum": [
            "ATHENA",
            "BIGQUERY",
            "REDSHIFT",
            "SNOWFLAKE",
            "DATABRICKS",
            "DATABRICKS_JOBS",
            "MSSQL",
            "MYSQL",
            "POSTGRESQL",
            "ORACLE",
            "SYNAPSE",
            "LOOKER",
            "TABLEAU",
            "QUICKSIGHT",
            "MICROSTRATEGY",
            "QLIK",
            "ADF",
            "AIRFLOW",
            "DBT",
            "DBTCLOUD",
            "FIVETRAN",
            "POWER_BI",
            "DECLARATIVE"
          ]
        }
      }
    }
  }
}