Skip to content

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