James Messinger
James Messinger
Parameters are validated by [the `parseParameter()` function](https://github.com/APIDevTools/swagger-express-middleware/blob/9d19da25f83d46c69628a4fe9dc461de98f272cf/lib/param-parser.js#L114-L122), which ultimately delegates to [the `jsonValidate()` function](https://github.com/APIDevTools/swagger-express-middleware/blob/9d19da25f83d46c69628a4fe9dc461de98f272cf/lib/helpers/json-schema.js#L201-L213). JSON Schema validation is done by [tv4](https://www.npmjs.com/package/tv4). In your case, it appears that the problem is...
Unfortunately, the JSON Schema spec says that the `pattern` property only applies to string properties. _However_, I can definitely see an argument that Swagger Express Middleware should support this, since...
We currently only support the formats that are specified in [the OpenAPI spec](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#data-types), which doesn't include "uuid". But I'd be happy to accept a PR that adds support for it
Good point. Swagger-Express-Middleware currently [calls Swagger-Parser's `dereference()` method](https://github.com/APIDevTools/swagger-express-middleware/blob/9d19da25f83d46c69628a4fe9dc461de98f272cf/lib/middleware.js#L56) rather than the `validate()` method. There are a couple different ways this could be addressed: **Option 1:** I could change the `dereference()`...
I had originally planned to release a v3 of Swagger Express Middleware with up-to-date dependencies and support for both Swagger 2.0 and OpenAPI 3.0. But that has proved too challenging,...
There's not currently a way to completely disable any of the request parsers, but I think this would be a good thing to add. Setting any of the parser options...
Awesome! Thanks for letting me know about that bug being fixed. Yes, there are already tests that test the file-uploading functionality, so if you want to submit a PR, then...
Ah yeah... I think I remember running into the same issue, where tests would fail because the byte-size of files was incorrect. It turned out to be caused by different...
The Swagger Spec allows 3 different ways to provide default/example responses. It's important to distinguish between the three: **1.** `responses.[code].examples` **Spec:** [here](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#response-object) and [here](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#exampleObject) This object allows you to provide...
It's not currently on the roadmap, but I'm definitely open to it. 👍