-
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
BoolEncodingStrategy
enum toCSVEncoderConfiguration
with all options documented - Add
boolEncodingStrategy
property toCSVEncoderConguration
- Update
CSVEncoderConfiguration.default
to 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