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

Convert fields #14

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Open

Convert fields #14

wants to merge 2 commits into from

Conversation

sualko
Copy link
Contributor

@sualko sualko commented Jan 24, 2022

This pr adds a new option field which allows to set validation options and replaces the request fields with the converted values. If you do not like this behavior you can pass convert = false as validation option.

@sergioalvz if you do not like to have a breaking change, we should set convert false as default.

Of course we need to create some tests for it.

Fix #9

@sualko
Copy link
Contributor Author

sualko commented Jan 28, 2022

@JeffreySoriano5 if you have time it would be awesome if you could test this pr and give some feedback to the api.

@JeffreySoriano5
Copy link

@sualko will give it a go

@sualko
Copy link
Contributor Author

sualko commented Feb 23, 2022

Any update on this?

@sergioalvz
Copy link
Member

Hi Klaus,

I still need to find some spare time to review this. At first glance, it looks good, but I can tell you I won't approve the PR until there are some unit tests and it gets rid of explicit casting (i.e., as Schema) 🙂

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

Successfully merging this pull request may close these issues.

Get converted payload after validation
3 participants