naz / swagger-express-validator

Lightweight requrest/response validation middleware based on swagger/OpenAPI schema
MIT License
56 stars 24 forks source link

Path and query validation #44

Open yskeat opened 5 years ago

yskeat commented 5 years ago

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

naz commented 5 years ago

Nothing concrete planned but contributions are welcome :smiley:

kibertoad commented 5 years ago

@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

fbo3264 commented 5 years ago

@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