Closed
Description
Hi,
class Thing
def something
'hello'
end
end
class Thing::Entity < Grape::Entity
expose :fields do
expose :something
end
end
returns:
{
"thing": {
"fields": {
"something": "hello"
},
"something": "hello"
}
}
I would expect:
{
"thing": {
"fields": {
"something": "hello"
},
}
}
Is this the expected behaviour? How can I get what I want?
I am using master