swagger-express-middleware
swagger-express-middleware copied to clipboard
Swagger 2.0 middlware and mocks for Express.js
currently, we have two properties on error, `error.status` and `error.message`. I'd like to propose that additional properties be added, so that the error messages can be better customized. if the...
How I cat disable multipart parsing in middleware.parseRequest({ multipart: { // I want disable multipart parsing owerall dest: path.join(__dirname, 'photos') } })
Looking through the code, I noticed a [piece of code](https://github.com/BigstickCarpet/swagger-express-middleware/blob/master/lib/request-parser.js#L36) that was commented out because it was waiting for a bug to be fixed. It appears that bug is fixed....
I was able to reproduce this fairly easily. My swagger doc defines a path parameter which is of type integer but not bounded (no min/max). When feeding a positive integer...
it would be great if errors would be extended with additional properties (e.g. which params where missing)
The Swagger spec supports some concept of composition via keywords like `allOf` (see the section "Composition and Inheritance (Polymorphism)" under [Schema Object](http://swagger.io/specification/#schemaObject)). However, SEM does not correct handle [at least]...
Here is an example app: ``` var express = require('express'); var swagger = require('swagger-express-middleware'); var request = require('request'); var app = express(); swagger({ swagger: '2.0', info: { version: '1.0', title:...
Hi, I added a small change making the namedParameters in lib/mock/edit-collection.js configurable via environment variable. All this is optional ofc. We talked about this a while ago in #15
See https://www.npmjs.com/package/tv4
My `GET` `POST` requests are changed to `OPTIONS` by `CORS` preflight. Cause my request is cross-domain, header-setted and with-credentials. I've searched a lot to solve this problem, but failed. Thus,...