You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
router.post('/create',checkSchema({user_name: {in: ['body'],errorMessage: 'username required',exists: true,},password: {in: ['body'],errorMessage: 'required and should be 8 characters contains number and letter',exists: true,},}),middlewares.create(create));
I would like to know if there is a option to not allow any other param besides these and show an error
The text was updated successfully, but these errors were encountered:
TheLox95
changed the title
It is possible to throw error when non declare params are passed?
It is possible to throw error when non declared params are send in a request?
Jul 19, 2018
Let say I have this schema
I would like to know if there is a option to not allow any other param besides these and show an error
The text was updated successfully, but these errors were encountered: