{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sifflet/json-schema/sifflet-public-create-microstrategy-source-v2-dto-schema.json",
  "title": "PublicCreateMicrostrategySourceV2Dto",
  "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/PublicCreateMicrostrategySourceV2Dto",
  "required": [
    "credentials",
    "microstrategyInformation",
    "name",
    "schedule",
    "type"
  ],
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/PublicCreateSourceV2Dto"
    },
    {
      "type": "object",
      "properties": {
        "credentials": {
          "type": "string",
          "description": "Credentials of the source"
        },
        "microstrategyInformation": {
          "$ref": "#/$defs/MicrostrategyInformation"
        },
        "schedule": {
          "type": [
            "string",
            "null"
          ],
          "description": "Schedule of the source. Supports CRON syntax. If empty, the source won't be scheduled."
        }
      }
    }
  ],
  "$defs": {
    "MicrostrategyInformation": {
      "required": [
        "host"
      ],
      "type": "object",
      "properties": {
        "host": {
          "type": "string",
          "description": "Your MicroStrategy host"
        }
      },
      "description": "MicroStrategy 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"
          ]
        }
      }
    }
  }
}