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

Document ability to override parse method #295

Open
akefirad opened this issue May 26, 2024 · 1 comment
Open

Document ability to override parse method #295

akefirad opened this issue May 26, 2024 · 1 comment

Comments

@akefirad
Copy link

akefirad commented May 26, 2024

I ried to find if it's currently possible in docs and on the web, but to no avail. Apologies if I'm missing something.
If it's not implemented already, can we have the possibility to customize the parsing logic. My use case is to implement NonBlankString (similar to NonEmptyStr but before validation, strips the string value first).
Thanks.

@antonagestam
Copy link
Owner

@akefirad This is just a matter of overriding the parse method in a subclass, but I see your point this could be explicitly documented. Let's keep this issue open to track that.

@antonagestam antonagestam changed the title Ability to Override parse Method Document ability to override parse method May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants