grape-entity icon indicating copy to clipboard operation
grape-entity copied to clipboard

An API focused facade that sits on top of an object model.

Results 96 grape-entity issues
Sort by recently updated
recently updated
newest added

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:...

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...

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?

`serializable_hash` may return `nil` before ```ruby Entities::User.represent nil # An error occurred when inspecting the object: #

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...

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...