-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Booleans are currently configured to output as the text strings true or false.
Add a new configuration parameter to CSVEncoderConfiguration to support different styles of encoding:
| encoding type | True encodes as | False encodes as |
|---|---|---|
.trueFalse (default) |
true |
false |
.trueFalseUppercase |
TRUE |
FALSE |
.yesNo |
yes |
no |
.yesNoUppercase |
YES |
NO |
.integer |
1 |
0 |
Expected work to do:
- Add
BoolEncodingStrategyenum toCSVEncoderConfigurationwith all options documented - Add
boolEncodingStrategyproperty toCSVEncoderConguration - Update
CSVEncoderConfiguration.defaultto use the default [^1] - Update
Bool.encode()method to amend output based on configuration strategy - Add unit tests for each strategy
- Review and verify generated DocC documentation
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers