swagger-server
swagger-server copied to clipboard
No longer maintained. Please use https://github.com/BigstickCarpet/swagger-express-middleware
Hi, Thank you for a wonderful API. I am currently developing microservices using swagger 2.0 spec: meaning, I've one complete swagger spec for each of my microservice. Say, I've 1....
Hi! Is there a way to customize the validation logic to include support for nullable fields? I want to introduce a property like **`x-nullable: true`** in my definition and then...
an error started to apper when parsing swagger API from JSON object like this with new nodejs 6.9.1: ``` parser.dereference("swagger.yaml", { $refs: { internal: false } }).then(function (api) { server.parse(api);...
node6 throws an exception because of the line https://github.com/BigstickCarpet/swagger-server/blob/master/lib/parser.js#L62 when the `swagger` variable is not a string. this happens when i give swagger-server an already parsed object. this is allowed...
I experimented with the mock server with a valid Swagger compliant json and Sample 1 example given. When I try a post request I am getting the request itself as...
I create an endpoint: POST /api/search/trips. When I send a request to this endpoint, swagger-server shows this in the console: ``` swagger:middleware The "timing" property ("2016-09-14T13:00:00") appears to be the...
I tried a different way to access the HTTP OPTIONS method in my own middleware but i have no luck. It only works as expected when i remove the `corsPreflight`...
Hello! Please check that. I was trying to write it from scratch but it was giving me 410 Gone on requesting index. So I took sample and was cutting it...
Added mock server executable
I think that can be awesome to use a tweaked express-generator that generate a swagger-server with the paths' middlewares ready, like swagger-codegen.