GrafeasGroup / blossom

The website. The app. The everything.
6 stars 3 forks source link

Add custom serializer for the response of the find endpoint #233

Closed TimJentzsch closed 2 years ago

TimJentzsch commented 2 years ago

Relevant issue: N/A

Description:

This is another PR on the long road of fixing the /find/ endpoint. Here, we are adding a custom serializer for the response, so that we don't get type errors.

I could confirm on my local instance that the submission is now returned properly and that no error occurs. Whether the author and transcription are also returned correctly is hard to test locally without creating and patching a bunch of objects. So I'm hoping that this will be the last PR.

Checklist: