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

Return classes without ids fail silently #175

Open
baccatabob opened this issue Sep 19, 2017 · 0 comments
Open

Return classes without ids fail silently #175

baccatabob opened this issue Sep 19, 2017 · 0 comments
Labels

Comments

@baccatabob
Copy link

baccatabob commented Sep 19, 2017

To reproduce:

  1. Define MyClass without an Id field
  2. Define MyClassResource correctly
  3. Create a controller that returns List<MyClass>, with an ReturnsResource attribute pointing to MyClassResource

(I'm also doing authorisation using OAuth, and compression, but I don't think that these matter.)

The HTTP response will have a status of 200 but 0 length (and 0 contents).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants