Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Transforms to Properties #681

Open
eeverman opened this issue Nov 4, 2021 · 0 comments
Open

Add Transforms to Properties #681

eeverman opened this issue Nov 4, 2021 · 0 comments

Comments

@eeverman
Copy link
Owner

eeverman commented Nov 4, 2021

Is your feature request related to a problem? Please describe.
It would be nice to not have to be picky about capitalization. If a value must be 'FOO' or 'BAR', couldn't there be a post-parse step that would accept a transform to convert the value to UCase?

Similar things could happen for other types of values: Round to the nearest X, absolute value, etc.

Describe the solution you'd like
A transform step, that happens after parse but before validation.

Describe alternatives you've considered
Types can be used to do this during parse, but its more involved and easy to break contracts. Easier to have a simple transformer that anyone could plug into with a lambda.

@eeverman eeverman added this to the 0.5.1 milestone Nov 4, 2021
@eeverman eeverman modified the milestones: 1.5.1, Next Next Dot Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant