You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Now such custom options not allowed ant an exception is throwing:
/gems/grape-entity-1.0.0/lib/grape_entity/entity.rb:624:in `block in valid_options': :custom is not a valid option. (ArgumentError):
raise ArgumentError, "#{key.inspect} is not a valid option." unless OPTIONS.include?(key)
The text was updated successfully, but these errors were encountered:
It would be great to be able to provide custom options for entity exposure like:
Not only option named
custom
but any other name as well. It might be helpful sometimesNow such custom options not allowed ant an exception is throwing:
The text was updated successfully, but these errors were encountered: