swagger-tools
swagger-tools copied to clipboard
A Node.js and browser module that provides tooling around Swagger.
Is there's any way to set initial rendering options for swagger-ui? I've tried this, but it does not work: ``` js app.use(middleware.swaggerUi({ "docExpansion": "list", "defaultModelRendering": "model" }); ``` Thanks for...
This specs is valid: ``` yaml --- swagger: '2.0' info: version: 0.0.0 title: Simple API paths: /{email}: parameters: - name: email in: path type: string get: parameters: - name: email...
Hi, we are using swagger-tools on a project and will updating it from 0.10.1 to 0.10.3 some test of ours started failing. A quick diagnostic shows this: *0.10.1* ``` swagger-tools:middleware:metadata...
Hey swagger-tools team, thanks for this project! So I'm using Swagger to develop docs for an existing API, and I'm testing against a Node server that's running swagger-tools. I need...
I have a Swagger 2.0 spec `api/spec.json` and inside there I want to have a reference to a local file `api/defs.json` for my definitions. So in `spec.json` I'm doing something...
I have some spec files along with the controller files in my controller directory. I should be able to ignore certain type of files. For ex i should be able...
In swagger 2, a parameter in body will have a .schema, rather than be a schema: http://swagger.io/specification/#parameterObject getParameterType() is already savvy to this, so we do what it does for...
Hi there, Keep running into this error in a private repo, so I thought I'd add a small check ``` TypeError: Cannot read property 'convert' of undefined at Object. (...src/node_modules/swagger-tools/lib/specs.js:39:46)...
According to the swagger 2.0 spec [1]: consumes A list of MIME types the operation can consume. This OVERRIDES [emph] the consumes definition at the Swagger Object. An empty value...
Hi, I have a strange issue with swagger-tools 0.10.1 . I'm using lots of references and especially lots of references from external files. Now I would like to use a...