Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entities completely replace response, instead of nesting #244

Closed
xxx opened this issue Sep 13, 2012 · 1 comment
Closed

Entities completely replace response, instead of nesting #244

xxx opened this issue Sep 13, 2012 · 1 comment

Comments

@xxx
Copy link

xxx commented Sep 13, 2012

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.

@dblock
Copy link
Member

dblock commented Sep 13, 2012

This is a dup of #241, what you want it to do makes perfect sense. That issue describes exactly this scenario.

@dblock dblock closed this as completed Sep 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants