-
Notifications
You must be signed in to change notification settings - Fork 122
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
issue with #235 #342
Comments
pull #235 |
What's your suggestion? |
update: {
rest: "PUT /:id",
params: {
- id: { type: "any" }
+ $$root: true,
+ type: 'object',
+ strict: false,
+ props: {
+ id: { type: "any" }
+ }
},
handler(ctx) { Because I'm using default (fastest-validator), so I created this patch to fix problem, but I'm not sure with other validators. |
This suggestion works for you only, it's not a common solution. By the way, I think for your case, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
with default validator option
strict "remove"
, update params will be remove everything exceptid
The text was updated successfully, but these errors were encountered: