Skip to content

Entities completely replace response, instead of nesting #244

Closed
@xxx

Description

@xxx

Hello,

I've found that entities are completely replacing the intended response within an endpoint, acting as if they are in the first level.

what I'm doing:

{
  :status => 200,

  :data => {
    :user => present(user, :with => API::Entities::User)
  }
}

What it returns:

{
  :id => 100,
  :name => 'Jane Smith'
}

It's returning the correct data for the entity, but I lost all of the nesting that I'd like to have. Is there's something I am missing, that I should be doing to keep the nesting that I would like? I'm using the git master at rev b5b6d48 when I'm seeing this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions