sinatra-swagger-exposer icon indicating copy to clipboard operation
sinatra-swagger-exposer copied to clipboard

Create Swagger endpoint for your Sinatra application

Results 11 sinatra-swagger-exposer issues
Sort by recently updated
recently updated
newest added

Currently the path is hardcoded: https://github.com/archiloque/sinatra-swagger-exposer/blob/master/lib/sinatra/swagger-exposer/swagger-exposer.rb#L44 I'd love to be able to post it under a different URL (like `/api/doc.json`)

Sinatra 2.0 is out, contraining to < 2 is very restrictive for recent projects.

CodeClimate is not pinned and configuration is incompatible with versions >= 1.0.

Integers over `2^53` that aren't an exact power of 2 fail validation as integers. `Value [plop] should be an integer but is [9007199254740993]`

Hey, I've been tinkering around with this gem and a small sinatra application. However, when I wanted to use the swagger-js client with my backend, I learned that swagger-js uses...

Hello @archiloque ! I'm trying to test the `sinatra-swagger-exposer` in one of my sinatra apps. However I'm getting the following error: ``` NameError: uninitialized constant Sinatra::JSON::ParserError /Users/daniel.campos/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-swagger-exposer-0.4.0/lib/sinatra/swagger-exposer/processing/swagger-response-processor.rb:36:in `rescue in validate_response'...

I'm trying to setup Swagger docs for an existing, poorly documented, sinatra server. I'm starting out by just adding documentation to a couple of methods, to expand from there later...

I only want the swagger endpoint to allow cross-origins requests, but `sinatra-cross_origin` only has `enable :cross_origin` to enable it everywhere, or `cross_origin` inside a route definition to enable it locally....