How to extend a Joi schema?
I have a joi schema called user
I have a joi schema called user
in the backend there is no issue i can upload the photo using POSTMAN but i cant upload from the client(react ) side its says ‘image must be string’
I have a post request with express that upload a file and some data to the mongodb:
I want to send joi validation error in response how can I do this
here is my code but it is not working,
I am trying to validate a nested object conditionally based upon a value in the parent.
I have two users customer
and manager
. manager
has some extra fields in its schema. So for that i have created two joi schema objects:
It seems pretty straight forward to validate user’s input in Node.js RESTapi with Joi
.
I have Joi schema and want to add a custom validator for validating data which isn’t possible with default Joi validators.
I’m using Joi package for server side Validation.
I want to check if a given string is in a given list or if it is not in a given list.(define black list or white list for values)
sth like an “in” or “notIn” function.how can I do that?
There is object with a property time (22:30:00).