z0mt3c / node-restify-validation

Validation for REST Services built with node-restify in node.js
MIT License
91 stars 49 forks source link

Not Compatible with Restify 7.x.x #79

Open andrewzey opened 6 years ago

andrewzey commented 6 years ago

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

rodrigofbm commented 5 years ago

no fix?

gen4sp commented 5 years ago

any updates?

gen4sp commented 5 years ago

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

kimgysen commented 5 years ago

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);
govindkrishnaamt commented 4 years ago

kindly merge the code with master #85 @z0mt3c