{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-healthomics/json-schema/amazon-healthomics-start-annotation-import-request-schema.json",
  "title": "StartAnnotationImportRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-healthomics-import-api-openapi.yml#/components/schemas/StartAnnotationImportRequest",
  "type": "object",
  "properties": {
    "destinationName": {
      "type": "string",
      "description": "A destination annotation store for the job."
    },
    "roleArn": {
      "type": "string",
      "description": "A service role for the job."
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AnnotationImportItemSource"
      },
      "description": "Items to import."
    },
    "versionName": {
      "type": "string",
      "description": "The name of the annotation store version."
    },
    "formatOptions": {
      "$ref": "#/$defs/FormatOptions"
    },
    "runLeftNormalization": {
      "type": "boolean",
      "description": "The job's left normalization setting."
    },
    "annotationFields": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The annotation schema generated by the parsed annotation data."
    }
  },
  "required": [
    "destinationName",
    "roleArn",
    "items"
  ],
  "$defs": {
    "AnnotationImportItemSource": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string",
          "description": "The source file's location in Amazon S3."
        }
      },
      "required": [
        "source"
      ]
    },
    "FormatOptions": {
      "type": "object",
      "properties": {
        "tsvOptions": {
          "$ref": "#/$defs/TsvOptions"
        },
        "vcfOptions": {
          "$ref": "#/$defs/VcfOptions"
        }
      },
      "description": "Exactly one member is set."
    },
    "ReadOptions": {
      "type": "object",
      "properties": {
        "sep": {
          "type": "string",
          "description": "The file's field separator."
        },
        "encoding": {
          "type": "string",
          "description": "The file's encoding."
        },
        "quote": {
          "type": "string",
          "description": "The file's quote character."
        },
        "quoteAll": {
          "type": "boolean",
          "description": "Whether all values need to be quoted, or just those that contain quotes."
        },
        "escape": {
          "type": "string",
          "description": "A character for escaping quotes in the file."
        },
        "escapeQuotes": {
          "type": "boolean",
          "description": "Whether quotes need to be escaped in the file."
        },
        "comment": {
          "type": "string",
          "description": "The file's comment character."
        },
        "header": {
          "type": "boolean",
          "description": "Whether the file has a header row."
        },
        "lineSep": {
          "type": "string",
          "description": "A line separator for the file."
        }
      }
    },
    "TsvOptions": {
      "type": "object",
      "properties": {
        "readOptions": {
          "$ref": "#/$defs/ReadOptions"
        }
      }
    },
    "VcfOptions": {
      "type": "object",
      "properties": {
        "ignoreQualField": {
          "type": "boolean",
          "description": "The file's ignore qual field setting."
        },
        "ignoreFilterField": {
          "type": "boolean",
          "description": "The file's ignore filter field setting."
        }
      }
    }
  }
}