node-restify-validation icon indicating copy to clipboard operation
node-restify-validation copied to clipboard

Not Compatible with Restify 7.x.x

Open andrewzey opened this issue 7 years ago • 5 comments
trafficstars

All validation rules are completely ignored using Restify 7.x.x. Rolling back to Resitfy 6.4.0 resolves the issue for me, and everything works as before.

I'm running this on Node 8.9.0

andrewzey avatar Apr 23 '18 19:04 andrewzey

no fix?

rodrigofbm avatar Jan 04 '19 00:01 rodrigofbm

any updates?

gen4sp avatar Jan 06 '19 21:01 gen4sp

https://github.com/z0mt3c/node-restify-validation/pull/85 fix here

gen4sp avatar Jan 06 '19 21:01 gen4sp

I'm using Restify v8.3.3 and validations are ignored again.
Is this library still supported currently?

const trendingValidation = {
  queries: {
    near_lat: { isRequired: true },
    near_lng: { isRequired: true },
    since: { isRequired: true }
  }
};

router.get({ path: '/trending', version: API_VERSION, validation: trendingValidation}, getTrending);

kimgysen avatar Jun 27 '19 08:06 kimgysen

kindly merge the code with master #85 @z0mt3c

govindkrishnaamt avatar Jan 03 '20 10:01 govindkrishnaamt