{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/appy-to/json-schema/appy-to-link-import-schema.json",
  "title": "LinkImport",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/appy-to-openapi.yaml#/components/schemas/LinkImport",
  "type": "object",
  "required": [
    "source",
    "csv"
  ],
  "additionalProperties": false,
  "properties": {
    "source": {
      "type": "string",
      "enum": [
        "branch",
        "onelink",
        "auto"
      ],
      "description": "Where the file comes from. `auto` guesses from the column names and link hosts."
    },
    "csv": {
      "type": "string",
      "maxLength": 491520,
      "description": "The CSV file's contents, header row first. Comma, semicolon or tab separated. Key columns use\nthe provider's names (`$ios_url`, `~campaign`, `af_dp`, `pid`). Also read: a short link column\n(`url`, `Short link`), an alias column (`alias`, `shortlink_id`, `Custom Link ID`), a `data`\nor `payload` JSON column (Branch read API, OneLink API v2 responses) and a long link column\nwhose query string is read as keys.\n"
    },
    "dryRun": {
      "type": "boolean",
      "default": false,
      "description": "true checks every row and writes nothing."
    },
    "defaults": {
      "type": "object",
      "additionalProperties": false,
      "description": "Used for rows that do not set their own value.",
      "properties": {
        "fallbackUrl": {
          "type": "string",
          "format": "uri",
          "description": "Website destination."
        },
        "iphoneUrl": {
          "type": "string",
          "format": "uri",
          "description": "App Store page for rows without an iOS URL."
        },
        "androidUrl": {
          "type": "string",
          "format": "uri",
          "description": "Google Play page for rows without an Android URL."
        },
        "deeplinkScheme": {
          "type": "string",
          "description": "Your app's URI scheme. Needed to turn Branch deep link paths and OneLink deep_link_value into a deep link."
        },
        "linkDomain": {
          "type": "string",
          "description": "The old link domain for rows that have an alias but no URL."
        }
      }
    }
  }
}