@@ -298,11 +298,17 @@ Supported options:
298298- ` -o, --outputfile ` write output to file instead of stdout
299299- ` -t, --testMode ` enable diagnostics mode and generate one row
300300- ` --unsafe-faker-expressions ` allow expression-style faker args (disabled by default)
301+ - ` --trim-input ` trim whitespace from every imported field value before amend processing
302+ - ` --trim-input-fields ` comma-separated imported field names to trim before amend processing
301303
302304Amend existing data with a schema:
303305
304306` anywaydata amend --schema-file schema.txt --data-file input.csv --input-format csv -f json -o amended.json `
305307
308+ Trim imported input values during amend:
309+
310+ ` anywaydata amend --schema-file schema.txt --data-file input.csv --input-format csv --trim-input-fields Name,Email -f json `
311+
306312Pairwise note:
307313
308314- when ` --pairwise ` is enabled, ` --numberOfLines ` is accepted but ignored (the pairwise engine determines row count)
@@ -370,6 +376,7 @@ Amend imported data endpoint:
370376` POST http://localhost:3000/v1/generate/amend `
371377
372378- JSON body fields: ` textSpec ` (required), ` inputData ` (required raw text), ` inputFormat ` (required), ` rowCount ` (optional, defaults to input row count), ` outputFormat ` (optional), ` responseFormat ` (optional), ` stream ` (optional and ignored)
379+ - amend trim controls: ` trimInput ` trims all imported field values; ` trimInputFieldsCsv ` trims only the listed imported field names
373380- ` rowCount ` must be ` <= ` imported row count
374381- response returns the full resulting dataset after amendment
375382
@@ -499,6 +506,8 @@ Inputs:
499506- ` outputFormat ` (required string e.g. ` csv ` , ` json ` , ` jsonl ` , ` xml ` , ` sql ` )
500507- ` options ` (optional object)
501508- ` seed ` (optional number)
509+ - ` trimInput ` (optional boolean for ` amend_data_from_spec ` )
510+ - ` trimInputFieldsCsv ` (optional string for ` amend_data_from_spec ` )
502511
503512Discoverability support:
504513
0 commit comments