mysociety / popit-api

DEPRECATED - Development on PopIt has stopped and it is no longer being maintained
https://goo.gl/Vvej4Q
Other
17 stars 3 forks source link

Fix image ids in API output #136

Closed chrismytton closed 9 years ago

chrismytton commented 9 years ago

Make sure the images ids in the API output are correct. When there is no schema defined the API doesn't know what to do with the _id field, so it serializes it to an object instead of a string.

Eventually I'd like all of the schemas in popit-api to be explicit like this (see https://github.com/mysociety/popit/issues/264#issuecomment-85448579 for more details on whats involved with that).

Fixes https://github.com/mysociety/popit/issues/470

chrismytton commented 9 years ago

This might also fix https://github.com/mysociety/popit-api/issues/83

struan commented 9 years ago

Looks fine.