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

[Feature Request] Ability to rename parameters #785

Open
supermacro opened this issue Oct 9, 2019 · 3 comments · May be fixed by #1215 or #971
Open

[Feature Request] Ability to rename parameters #785

supermacro opened this issue Oct 9, 2019 · 3 comments · May be fixed by #1215 or #971

Comments

@supermacro
Copy link

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!

@fedeci
Copy link
Member

fedeci commented Dec 27, 2020

@supermacro are you still interested in raising a PR for this?

@supermacro
Copy link
Author

Hey @fedeci, I have since moved on from this project and will not be opening a PR for this.

@fedeci
Copy link
Member

fedeci commented Dec 27, 2020

Ok, I'll work on this!

@fedeci fedeci self-assigned this Dec 27, 2020
@fedeci fedeci linked a pull request Jan 2, 2021 that will close this issue
7 tasks
@anasshakil anasshakil linked a pull request Feb 21, 2023 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants