buunguyen / koa-req-validator

Declarative request validation middleware for Koa
MIT License
19 stars 11 forks source link

Feature Request: Allow validating properties of object in a request #1

Closed ngphi closed 7 years ago

ngphi commented 7 years ago

Validating properties of a object or a nested object in a request is necessary in some use cases. It would be better if the validate middleware has these capability. I propose a conventional syntax for validating object's properties.

If the proposal is approved, I am willing to update the README.

ngphi commented 7 years ago

@buunguyen. Thank for your review. I have improved PR following your suggestions and also updated README. Looking forward to hearing feedback from you.