swagger-express-middleware
swagger-express-middleware copied to clipboard
Swagger 2.0 middlware and mocks for Express.js
I think that would be very helpful if swagger-express-middleware, besides Validate Request middleware feature, also had a feature to validate responses.
I have `page` & `limit` query params in my swagger file, and my front end code sets them to some values by default. But the mock middleware tries to filter...
Regarding the issues https://github.com/BigstickCarpet/swagger-express-middleware/issues/51 https://github.com/BigstickCarpet/swagger-express-middleware/issues/49 https://github.com/BigstickCarpet/swagger-express-middleware/issues/47 This PR implements pagination filtering for collections based on limit and offset parameter.
when an object value is null
If basePath is / then it removes the original / from the paths defined in the swagger file.
I'm currently quite stumped at the behavior of the middleware when it comes to requesting resources that have an example specified in the schema definition. I expected a request to...
error
plz help me to resolve this issue Error: Resource not found: /index.html at ono (F:\code files of web\FYP\node_modules\ono\lib\index.js:62:17) at http404 (F:\code files of web\FYP\node_modules\swagger-express-middleware\lib\request-validator.js:97:11) at Layer.handle [as handle_request] (F:\code files...
Hi there, great library! Our team is starting to use this to mock responses for our API paths, based on a Swagger doc. It seems that for whatever reason, performing...
If swagger's basepath is / and an endpoint is /some/api/endpoint, then one must access the url as //some/api/endpoint otherwise paths won't match.
The query parameter parser fails to parse query parameters in array CSV form (e.g. `q=1,2,3`). With the following OpenAPI 3.0 parameter definition: ```yaml parameters: - name: id in: query description:...