swagger-express-middleware
swagger-express-middleware copied to clipboard
Swagger 2.0 middlware and mocks for Express.js
For each build (from master), I have the following fail: ``` 1 failing 1) CORS middleware should set CORS headers, even if no other middleware is used: ReferenceError: Promise is...
- Fix handle 411 error for content-length (express send 0 if undefined) - Fix some mime types in unit tests
Today, only apiKey and basic authorization are managed for security. For oauth, we need to have a trusted application. But today, we can imagine a first by just checking the...
At first: Thank you so much for developing and sharing this awesome project - loving it! With the 1.0.0-alpha.12 and the following yaml: ```yaml paths: /applications: get: tags: - applications...
410 returned
Here's a fragment of my swagger.yml: ```yaml /purchases: post: summary: Submit a purchase description: | Purchase form consumes: - application/json parameters: - name: body in: body required: true schema: $ref:...
Files middleware causes warning when serving the swagger json with `useBasePath: true` The following middleware configuration causes WARNINGS when accessing `/api-docs` ```javascript app.use(middleware.files({ // Override the Express App's case-sensitive and...
I was writing the `yaml` models, and `json` models it takes to much time is it possible to generate models for `swagger` automatically as for `express routes`?
Is there a way to remove parameters from the request, which were not defined in the swagger spec (or just consider such requests invalid)? If not, this would be a...