swagger-express-validator icon indicating copy to clipboard operation
swagger-express-validator copied to clipboard

Path and query validation

Open yskeat opened this issue 5 years ago • 3 comments

Any planning to include path and query validation in near future?

yskeat avatar Jul 01 '19 01:07 yskeat

Nothing concrete planned but contributions are welcome :smiley:

naz avatar Jul 03 '19 08:07 naz

@yskeat If you need this functionality, you can also use express-ajv-swagger-validator (https://github.com/Zooz/express-ajv-swagger-validation), it already does support that. Or contribute feature to us :D

kibertoad avatar Jul 03 '19 21:07 kibertoad

@yskeat I was facing the same problem and ended up using swagger-tools (see https://github.com/apigee-127/swagger-tools/blob/master/docs/Middleware.md). For query/path validation use the provided swaggerMetadata-middleware and for body-validation use the swaggerValidator-middleware

fbo3264 avatar Aug 29 '19 20:08 fbo3264