joukevandermaas / saule

JSON API library for ASP.Net Web API 2.
https://joukevandermaas.github.io/saule
MIT License
76 stars 37 forks source link

Return classes without ids fail silently #175

Open baccatabob opened 7 years ago

baccatabob commented 7 years ago

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).