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

Trimming empty string values #62

Open
3 tasks
mabar opened this issue Mar 7, 2023 · 0 comments
Open
3 tasks

Trimming empty string values #62

mabar opened this issue Mar 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mabar
Copy link
Member

mabar commented Mar 7, 2023

Description

Add trimming string values to support error-prone user-given form inputs

  • StringValue() - parameter trim=bool, default false
  • Rules casting from string should also trim value, when casting is enabled (without any additional option). Specifically BoolValue() castBoolLike, FloatValue() castNumericString, IntValue() castNumericString, NullValue() castEmptyString
  • Options dynamic context to change all of above dynamically in runtime. e.g. StringDynamicContext with trim=true would enable all processed StringValue() to trim values. trim=false would disable all. Differentiating between implicit and explicit parameters is probably not needed.

Addition information

cc @mrceperka

Related issues

No response

@mabar mabar added the enhancement New feature or request label Mar 7, 2023
@mabar mabar modified the milestone: v0.1 Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant