From 35cd2d59c772b04d95cc1086f1522efb1e330f09 Mon Sep 17 00:00:00 2001 From: YaphetKG <45075777+YaphetKG@users.noreply.github.com> Date: Tue, 19 Dec 2023 19:55:18 -0500 Subject: [PATCH] Update server.py Pydantic errors with a 500 when the returned object doesn't match with the spec of the response. fixes https://github.com/TranslatorSRI/NameResolution/issues/129 --- api/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/server.py b/api/server.py index 3b2b070f..2b5712f6 100755 --- a/api/server.py +++ b/api/server.py @@ -150,7 +150,7 @@ async def reverse_lookup(curies) -> Dict[str, Dict]: response.raise_for_status() response_json = response.json() output = { - curie: [] + curie: {} for curie in curies } for doc in response_json["response"]["docs"]: