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

The test added by this [commit](https://github.com/astlouisf/grape/commit/a1c4d856d2616a914f5da1288bd9d61c73a1103a) fails with ``` Grape::API::Helpers defines parameters Failure/Error: return unless options[:include_missing] || passed_params.key?(declared_param) NoMethodError: undefined method 'key?' for an instance of String # ./lib/grape/dsl/inside_route.rb:82:in 'Grape::DSL::InsideRoute::PostBeforeFilter#declared_hash_attr'...

confirmed bug

**Description:** Our Grape-based API is not sending log entries to Google Cloud Logging, despite following the [[GCP Logging for Ruby setup instructions](https://cloud.google.com/logging/docs/setup/ruby)](https://cloud.google.com/logging/docs/setup/ruby). **Steps Taken:** - Configured ADC with valid credentials....

bug?

I'm curious if this was discussed before and done intentionally. For some reason, the `status` value is not passed into the `format_message` method here in `error!`: https://github.com/ruby-grape/grape/blob/5ce44def9ce7026ad140a31a146820d081ab6798/lib/grape/middleware/error.rb#L132-L137 Passing it would...

feature request
discuss!
question

While looking at the Coercer's [cache](https://github.com/ruby-grape/grape/blob/30b3a4377172814ca0bf0c72473f1df1bf7abcfb/lib/grape/validations/types.rb#L190), I've found that some keys have a weird name. When running the specs, I've found the followings : ```ruby __[[String]]_#_false __Array_#_false __Array_#_false __[String]_#_false __Hash_#_false...

bug?

It probably never happened but defining a optional parameter with a message attribute will raise an exception. The following test will fail. ```ruby context 'optional param with message' do let(:app)...

bug?

The length validator will raise an ArgumentError at runtime if `min`, `max` or `is` conditions aren't met. For instance ```ruby describe '/negative_max' do let(:app) do Class.new(Grape::API) do params do requires...

bug?

I am looking to implement query tags for activerecord when it's used inside a grape API class. One of the things I am looking into is a way to populate...

feature request