Skip to content

Commit

Permalink
Merge pull request #130 from TranslatorSRI/fix-reverse-lookup-resp
Browse files Browse the repository at this point in the history
Pydantic errors with a 500 when the returned object doesn't match with the spec of the response. fixes #129
  • Loading branch information
gaurav authored Dec 20, 2023
2 parents 025fa87 + 35cd2d5 commit a6e1762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down

0 comments on commit a6e1762

Please sign in to comment.