Skip to main content

TypeAlias.ImportMapperFormat

type ImportMapperFormat = ObjectEnum<typeof ImportMapperFormat>;

Shape of the sample a mapper is built against. Not persisted on the mapper — it is implied by its rows (column rules for CSV, path rules for JSON) — but it is an explicit input of the mapping suggestion, because the two formats carry very different evidence and get different prompts.

  • csv: sources are bare zero-based column indices; all the meaning sits in the header name, the example value and the column profile. Array destinations are unreachable (a cell is a string, never an array).
  • json: sources are JSONPath expressions, which carry the field name and its parent context; whole-array destinations are reachable.