swagger-tools
swagger-tools copied to clipboard
A Node.js and browser module that provides tooling around Swagger.
The content type validation of a request is limited to POST and PUT at [1]. PATCH and DELETE should also be validated. [1] https://github.com/apigee-127/swagger-tools/blob/c9f8e3ba570c305c2af69cbe55a30a515b2f0a1e/lib/validators.js#L249
Hi, thanks for this project! I'm running into an issue with swagger router running in mock mode. I have some definitions that have `PUT` and `POST` methods that should return...
I discovered this error and a co-worker did the sleuthing to track down the exact problem. It turns out that curl will default to `application/x-www-form-urlencoded` when you don't specify a...
This is the fix my co-worker suggested fixes the problem for him. I have tried it myself and once applied I can't replicate the problem either.
Hi guys. I'm trying to use an application/xml request body to post some data. I tested the "pet store api" from swagger.io : http://petstore.swagger.io/. It all works fins with xml...
Hey guys, I have a quite large project and so I decided to bundle my definitions into subfolders. I have some models that I ideally would name the same and...
The complete error: ``` #/definitions/Admin/properties/$ref: Expected type object but found type string ``` I have a spec that works fine in Swagger editor ie. not seeing any errors. However, in...
PR #422 added nested controller support but it's not quite complete. It seems that the built-in controller name is wrong. /cc @bitcloud
Given a swagger config: ```json "paths": { "/pets/{id}": { "get": { "operationId": "getPetsById", } } } ``` and a router config: ```javascript { swaggerRouterOptions: { controllers: './controllers' } } ```...
What happens: - In my swagger doc I define 'consumes' at the top-level to 'application/json' - I have a POST operation that doesn't need a body - If I send...