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

I have not seen it actually working, added some console logs in the modules, it's outputting those, but super odd, I can hit routes not in my Swagger without any...

Hi, I was wondering if the library offers any way to parse ``` x-swagger-router-controller ``` and ``` operationId ``` nodes to achieve automatic routing to the controller method when a...

question

Hi! I have a swagger file that looks like this: ```yml paths: /purchases: post: summary: Submit a purchase description: | Purchase form consumes: - application/json parameters: - name: body in:...

bug

Example data should not be used to backfill the object. It is there for documentation - unlike default property. Fixes #66

When enabling the CORS middleware, it inappropriately responds to all HTTP `OPTIONS` requests as if they were a CORS preflight request -- not _just_ for CORS requests. Per the [CORS...

bug

@JamesMessinger Hi! I was testing out the v3 branch as a dependency in my repo https://github.com/mustafar/parrot/ and ran into some bugs that I'm fixing here to the best of my...

When using a json based swagger document, `example` values are being used a `default` values when `default` is not defined. The expectation is that `example` values would be ignored. For...

bug

if I have two required fields in my path, and they both missing from request. the error message and stack only return the first one. is there a way to...

Resource not found if swagger basePath is specified when I run the sample2 Added 'basePath' in 'PetStore.yaml' as below: ``` swagger: "2.0" info: version: 1.0.0 title: Swagger petstore description: A...

It seems the validate method is not defined on the JsonSchema helper and blows up at this line. https://github.com/APIDevTools/swagger-express-middleware/blob/917abfffa7574340e2b1dfbe6f7dfada45e62324/lib/middleware/validate-request/validate-params.js#L45