We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am keep getting 409 Conflict
{ "code": "InvalidArgument", "message": "name (MISSING): Field is required, email (INVALID): Invalid email" }
if I am sending data with
Content-Type: application/x-www-form-urlencoded name=Anton&email=boogagoogle.co
import restify from 'restify'; import restifyValidation from 'node-restify-validation'; const server = restify.createServer(); server.use(restify.plugins.queryParser()); server.use(restify.plugins.bodyParser()); server.use(restifyValidation.validationPlugin()); server.post({ url: '/', validation: { queries: { name: { isRequired: true, }, email: { isEmail: true }, }, }}, async (req, res, next)=>{});
I have tried content instead of queries also. What gone wrong?
The text was updated successfully, but these errors were encountered:
What is your restify version ?
Sorry, something went wrong.
Was there ever resolution or a workaround for this issue?
Hi,
Email is invalid. Try with [email protected] seems to be ok. Take a look in unit tests in this project.
No branches or pull requests
I am keep getting
409 Conflict
if I am sending data with
I have tried content instead of queries also.
What gone wrong?
The text was updated successfully, but these errors were encountered: