Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

Convert fields#14

Open
sualko wants to merge 2 commits into
codecoolture:trunkfrom
sualko:feat-convert
Open

Convert fields#14
sualko wants to merge 2 commits into
codecoolture:trunkfrom
sualko:feat-convert

Conversation

@sualko

@sualko sualko commented Jan 24, 2022

Copy link
Copy Markdown
Contributor

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

sualko commented Jan 28, 2022

Copy link
Copy Markdown
Contributor Author

@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
Copy Markdown

@sualko will give it a go

@sualko

sualko commented Feb 23, 2022

Copy link
Copy Markdown
Contributor Author

Any update on this?

@sergioalvz

Copy link
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get converted payload after validation

3 participants