grape icon indicating copy to clipboard operation
grape copied to clipboard

An opinionated framework for creating REST-like APIs in Ruby.

Results 157 grape issues
Sort by recently updated
recently updated
newest added

If you mount a child API within a parent API, all helper methods are correctly inherited from parent to child, but not params helpers, for example: ```rb class Child <...

bug?

```ruby require 'grape' class Endpoint < Grape::API format :txt get(:e) { 'Endpoint was called' } end class Middleware def initialize(app) @app = app end def call(env) @app.call(env).tap do |r| r.write('...

bug?

http://pastebin.com/QQV0NJ5K ``` ruby # Entity module API module Entities class Article < Grape::Entity expose :title, documentation: { type: 'string', desc: 'Title' } expose :body, documentation: { type: 'string', desc: 'Body'...

feature request

I put the following code into my namespace definition: ```ruby puts caller puts '~~~~' ``` and it is executed twice, I see two backtraces. Is this normal? The file itself...

bug?

### Steps to reproduce What we need to do to see your problem or bug? I've upgraded Grape from 1.0 to 1.3.3 and can no longer add `Access-Control-Allow-Origin` and `Access-Control-Request-Method`...

bug?

I'm not sure if this is the intended behavior or not, but there appears to be a problem with the `:default` option on params that are nested inside another param...

bug?

grape: 1.0.1 ruby: 2.4.2 When you have: ``` Ruby params do requires :paired_values, type: Array do requires :name, allow_blank: false, type: String requires :semver, allow_blank: false, type: String, semver_constraint: true...

bug?

**Definition:** ``` params do optional :folder, type: String, default: nil optional :tag, type: Array, default: nil exactly_one_of :folder, :tag end ``` **header**: ``` Content-Type: application/json; ``` **request body**: ``` {...

feature request

See failing tests below for more specifics. To reproduce In a params block, define an array param within a Hash or JSON param: ```ruby params do optional :data, type: Hash...

confirmed bug

Can we access env before the endpoint? Accessing env inside the endpoint works but accessing it inside a DSL extension does not. Is this feature supported? ``` module Grape module...

feature request