Skip to content

issues Search Results · repo:ruby-grape/grape-entity language:Ruby

Filter by

185 results
 (102 ms)

185 results

inruby-grape/grape-entity (press backspace or delete to remove)

Good day, I think this project is pretty useful part of grape infrastructure, especially in combination with grape-swagger, but it looks less maintained than other projects in the org: PR queue is full ...
  • bogdan
  • 5
  • Opened 
    on May 15
  • #387

Hello 👋 I am creating this ticket to ask if it would be possible to introduce type validation to exposed fields. Currently there is not checking if the exposed fields are of a specified type. We can ...
  • dhruvCW
  • 7
  • Opened 
    on Jun 22, 2024
  • #386

It would be great to be able to provide custom options for entity exposure like: expose :name, custom: { key: value } Not only option named custom but any other name as well. It might be helpful sometimes ...
  • pavelbabin
  • Opened 
    on Mar 7, 2024
  • #382

I use grape gem version is that: grape (~ 1.8) grape-entity (~ 1.0) grape-middleware-logger (~ 1.12) grape-swagger (~ 1.6) grape-swagger-entity (~ 0.5) When I use rails 7.1.0, the output of route.entity ...
  • hsw15192617273
  • Opened 
    on Oct 10, 2023
  • #380

Minimum reproducible example: class Test Grape::Entity expose(:a, expose_nil: false) { |obj, options| options[:a] } end pp Test.new({}, a: 1).as_json # expected {a: 1}, renders {} pp Test.new({}, ...
  • zverok
  • Opened 
    on Aug 16, 2023
  • #378

Hi, First of all thanks for the amazing work! I am using grape entity to serialize ActiveRecord (Rails) objects to a hash, using .respresent(object) My grape entity looks like this: class Entities::ProductEntity ...
  • j-boers-13
  • 2
  • Opened 
    on Feb 6, 2023
  • #373

Do we have a wiki to stick this content into? Or maybe we can add it to the README.md? I thought identifying how to truncate long fields may be useful for others as well. For large character length fields ...
  • jonmchan
  • Opened 
    on Dec 21, 2022
  • #372

Right now, the description of the model is automatically written as {MODEL_NAME} Model and put in the swagger docs. How do we override that?
  • sharkey11
  • Opened 
    on Nov 2, 2022
  • #370

Context When delegating to a FetchableObject, we ve seen that it can cause breaking changes since it s only checking object.respond_to?(:fetch, true) here as opposed to checking if the object is a Hash. ...
  • danielvdao
  • 4
  • Opened 
    on Sep 3, 2022
  • #368

module API module V1 module Entities class A Grape::Entity expose :k expose :l expose :status def status HI end end end end ...
  • hay-wtag
  • Opened 
    on Jun 6, 2022
  • #365
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub