swagger can do automatic form validation in both browser/nodejs, using only json-schema (no programming required).
here are some screenshots and links for it being used client-side to validate file-uploads and crud-schemas (demo includes sample-code and on how to run it server-side as well).
[1] video-upload validation
https://kaizhu256.github.io/node-swgg/build..alpha..travis-ci.org/app/#!swgg_id_file_fileUploadManyByForm_2_1 <https://kaizhu256.github.io/node-swgg/build..alpha..travis-ci.org/app/#!swgg_id_file_fileUploadManyByForm_2_1>
[2] video-download validation
https://kaizhu256.github.io/node-swgg/build..alpha..travis-ci.org/app/#!swgg_id_file_fileGetOneById_id_id_1 <https://kaizhu256.github.io/node-swgg/build..alpha..travis-ci.org/app/#!swgg_id_file_fileGetOneById_id_id_1>
[2] form-validation
http://kaizhu256.github.io/node-swgg/build..alpha..travis-ci.org/app/#!swgg_id_x_test_parametersDefault_1 <http://kaizhu256.github.io/node-swgg/build..alpha..travis-ci.org/app/#!swgg_id_x_test_parametersDefault_1>
[3] crud-schema validation
https://kaizhu256.github.io/node-swgg/build..alpha..travis-ci.org/app/#!swgg_id_addPet_1 <https://kaizhu256.github.io/node-swgg/build..alpha..travis-ci.org/app/#!swgg_id_addPet_1>
[4] live-validation for google-maps directions
https://kaizhu256.github.io/node-swgg-google-maps/build..beta..travis-ci.org/app/#!swgg_id__2Fmaps_2Fapi_2Fdirections_2Fjson_20GET_1 <https://kaizhu256.github.io/node-swgg-google-maps/build..beta..travis-ci.org/app/#!swgg_id__2Fmaps_2Fapi_2Fdirections_2Fjson_20GET_1>
[5] live form-validation for all of githubâs ~900 apis (warning: the json-schema is ~1mb and might run sluggish unless youâre using chrome)
https://kaizhu256.github.io/node-swgg-github-all/build..beta..travis-ci.org/app/#!swgg_id__2Frepos_2F_7Bowner_7D_2F_7Brepo_7D_2Fbranches_2F_7Bbranch_7D_2Fprotection_2Fenforce_admins_20POST_1 <https://kaizhu256.github.io/node-swgg-github-all/build..beta..travis-ci.org/app/#!swgg_id__2Frepos_2F_7Bowner_7D_2F_7Brepo_7D_2Fbranches_2F_7Bbranch_7D_2Fprotection_2Fenforce_admins_20POST_1>
kai zhu
Post by Anuj GuptaI have written this blog to help you out with it
https://www.npmjs.com/package/kasper
https://github.com/hapijs/joi <https://github.com/hapijs/joi>
Sent: Friday, January 05, 2018 1:44 AM
Subject: [nodejs] Form validation in nodejs
Hello,
I am nodejs beginner and i am trying to form validation in nodejs but not success, please help me how i will do this i am using Ajax for the form submision
--
Job board: http://jobs.nodejs.org/ <http://jobs.nodejs.org/>
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md <https://gist.github.com/othiym23/9886289#file-moderation-policy-md>
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines <https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines>
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/35604ff9-b59e-4370-99b8-2c9c758bdbf3%40googlegroups.com <https://groups.google.com/d/msgid/nodejs/35604ff9-b59e-4370-99b8-2c9c758bdbf3%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
Job board: http://jobs.nodejs.org/ <http://jobs.nodejs.org/>
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md <https://gist.github.com/othiym23/9886289#file-moderation-policy-md>
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines <https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines>
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/e8617229-4bcc-4c86-84ae-0bca18084df1%40googlegroups.com <https://groups.google.com/d/msgid/nodejs/e8617229-4bcc-4c86-84ae-0bca18084df1%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/4875F5E7-6BA8-4994-AD14-7CDC84136A94%40gmail.com.
For more options, visit https://groups.google.com/d/optout.