{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/misata-studio/json-schema/misata-studio-export-request-schema.json",
  "title": "ExportRequest",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/misata-studio-openapi.json#/components/schemas/ExportRequest",
  "properties": {
    "format": {
      "type": "string",
      "enum": [
        "csv",
        "parquet",
        "jsonl",
        "json",
        "avro",
        "xlsx",
        "feather",
        "orc",
        "sqlite",
        "duckdb",
        "sql",
        "dbt",
        "notebook",
        "dictionary",
        "dbml",
        "mermaid",
        "prisma",
        "sqlalchemy",
        "typescript",
        "jsonschema",
        "expectations",
        "django",
        "openapi",
        "mockapi",
        "demo",
        "raw",
        "salesforce",
        "hubspot"
      ],
      "title": "Format",
      "description": "The file to make: one of the formats listed here. salesforce and hubspot write each object a CRM holds, in load order, with a loader"
    },
    "layout": {
      "type": "string",
      "enum": [
        "relational",
        "star",
        "flat"
      ],
      "title": "Layout",
      "default": "relational"
    },
    "tables": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Tables",
      "description": "Only these tables; all when omitted"
    },
    "dialect": {
      "type": "string",
      "enum": [
        "postgres",
        "mysql",
        "sqlite",
        "mssql",
        "oracle",
        "bigquery",
        "snowflake",
        "clickhouse"
      ],
      "title": "Dialect",
      "description": "The SQL dialect of `sql`, `dbt` and `demo`",
      "default": "postgres"
    }
  },
  "type": "object",
  "required": [
    "format"
  ]
}