You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inveterateliterate
changed the title
Pass in explicit truthy / falsy options to coerce with boolean parser
Pass in explicit truthy / falsy options to transform with boolean parser
Jul 11, 2022
Feature Description
Suggested Solution
Checkboxes come in as "0" and "1" - both of which are truthy. The boolean decanter makes an explicit call out for this: https://github.com/LaunchPadLab/decanter/blob/main/lib/decanter/parser/boolean_parser.rb#L10 to coerce those values into expected results from the UX.
There may be other version of truthy or falsy values in the UX (e.g., "yes", "no", etc. Would be nice to able to indicate that with decanter
Alternatives Considered / Existing Workarounds
Additional Context
How we got here: #127
The text was updated successfully, but these errors were encountered: