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
[Feature Request] Ability to rename parameters #785
Labels
Comments
@supermacro are you still interested in raising a PR for this? |
Hey @fedeci, I have since moved on from this project and will not be opening a PR for this. |
Ok, I'll work on this! |
7 tasks
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We're currently assessing if we want to use @hapi/joi or express-validator. I'm in favor of this package because our app is in typescript, while the joi package is not, meaning we'd have to maintain the types in a separate file / package.
The only thing that's missing in this package is the ability to rename a field for backwards compatibility, see joi's API here:
https://hapi.dev/family/joi/?v=16.1.7#objectrenamefrom-to-options
Any thoughts on adding this as a sanitizer? Or some plugin API?
I'd be willing to open an MR for this!
The text was updated successfully, but these errors were encountered: