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

Swagger 2.0 middlware and mocks for Express.js

Results 102 swagger-express-middleware issues
Sort by recently updated
recently updated
newest added

Hello guys, Is there any way to return a 404 error defined in schema instead the error trace? Thanks!

First of all, I am thankful such project exists. My response definition looks like this- ``` "responses": { "200": { "description": "successful operation", "schema": { "type": "array", "items": { "$ref":...

enhancement
swagger spec compliance

So here is my problem, I am using this tool as part of my selenium testing. For each browser, I would like a separate data store so that actions performed...

enhancement

If a name property is inherited (for example, id is inherited from a parent type) then the lookup that attempts to identify the name of the resource fails with the...

If you have an endpoint that's expected to deliver a response of some kind, and no response is given, the middleware will fail the request with a 404, implying that...

In CRUD GET over a collection the query params offset and limit are usually used to control pagination. For example, limit is in the example for http://swagger.io/specification/#parametersDefinitionsObject swagger-express-middleware seems to...

I am struggling to get this tool to work using JSON. I feel perhaps I am not doing it correctly. swagger-express-middleware version: 1.0.0-alpha.12 The error I always get is: ```...

I have some required query params like a `offset` and `limit`. And i doesn't have this fields in my resources, but _filtering apllies to them and i get empty array...

Something along these lines would be great in which both rest calls and calls via web sockets that are dispatched to swagger would be great. See, for example: https://github.com/jhthorsen/swagger2/blob/master/examples/websocket.pl https://metacpan.org/pod/distribution/Swagger2/lib/Swagger2/Guides/WebSocket.pod

I noted my swagger mock was failing cause it was using query resource where query collection should be be used. My collection look like {offset=0, limit=10, items: [], etc) The...