Skip to content

Empty entity is exposing a field #230

Open
@Razer6

Description

@Razer6

I have the following empty entity:

class Project < Grape::Entity
end

Although the entity is empty the JSON response contains a field permission:

{
  "permissions": {
    "project_access": null,
    "group_access": {
      "access_level": 50,
      "notification_level": 3
    }
  }
}

This seems very strange to me and I think that is a bug. I am using grape-entity 0.5.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions