Mapping Sheet → Code
Upload a field-mapping sheet (.csv or .xlsx) with a source field column, a target field column, and a mapping-logic column, then generate a working Node.js or Java mapper function from it.
Supported mapping-logic keywords
- Blank, "direct", "1:1", "copy" → straight field copy
- "constant: VALUE" or "fixed: VALUE" → always sets a fixed value
- "lookup: A=X|B=Y|C=Z" → a switch/if-else translation table
- "for each" / "foreach" / "loop" / "array" → array copied as-is (flagged to verify per-item mapping)
- Anything else → kept verbatim as a TODO comment, never guessed at
Field paths can be dotted (e.g. "order.customer.name") to reach or create nested objects.