swagger-tools
swagger-tools copied to clipboard
A Node.js and browser module that provides tooling around Swagger.
This changeset provides an option to allow a custom JSON schema validator to be passed to the validation middleware. See further discussion in #467. In general this actually a small...
I started using swagger-tools recently and came across an issue where the Swagger UI middleware published through /docs behaved differently than the "standard" one (at http://petstore.swagger.io/). In particular, the middleware...
 Just faced this issue and i have no idea why. My DTO structure is here export interface ICreateTeacherDto { firstname: string | undefined; lastname: string | undefined; teacherKey: string...
Hi, According to - https://github.com/expressjs/multer/issues/344 https://cwe.mitre.org/data/definitions/400.html The multer package is vulnerable to Denial of Service (DOS). The file make-middleware.js and disk.js read all the bytes of an uploaded file before...
using VisualStudio Code and TypeScript, once compiling ts files, TSC generates js files and d.ts files. when the controllers folder passed to swagger-router the regular expression in the 10.2 and...
As the title suggests, the latest release does not work on with apigee because of a dependency on superagent which uses const. Is there any version of this library which...
When turning on the validator, I noticed the following debug output: swagger-tools:middleware:validator Validation: skipped (No response definition) 500 +0ms However, I do have a response defined for 500. So looking...
https://github.com/apigee-127/swagger-tools/blob/361c1f6f08aed64c8da1784cef5ea61a83bac787/lib/validators.js#L169-L183 ^ This code demonstrates how your validators translate from a validation error into the documented schema for validation errors. https://github.com/apigee-127/swagger-tools/blob/master/docs/Middleware.md#validation-errors https://github.com/apigee-127/swagger-tools/blob/361c1f6f08aed64c8da1784cef5ea61a83bac787/lib/validators.js#L449-L453 ^ This code shows that for Required fields...
Not sure if an issue is the best place to ask this, but: I'm looking to incorporate swagger into an existing project, and I'm totally new to swagger. Should I...
Hi, My nodejs app is using swagger-tools middleware with express which works fine with most of my service's contracts defined in the swagger spec. I have a requirement where a...