Commit fa0222e8 authored by Kamal Dodiya's avatar Kamal Dodiya
Browse files

Merge branch 'optional_symbol' into 'master'

Make symbol optional in the response

See merge request !1
parents 90bcac40 e9ba2421
Pipeline #177728 passed with stages
in 1 minute and 25 seconds
...@@ -59,4 +59,4 @@ async def get_search_results(search_query: SearchQuery): ...@@ -59,4 +59,4 @@ async def get_search_results(search_query: SearchQuery):
} }
transformed_search_result_docs = await transform_search_result(search_result) transformed_search_result_docs = await transform_search_result(search_result)
response = SearchResult(meta=meta, matches=transformed_search_result_docs) response = SearchResult(meta=meta, matches=transformed_search_result_docs)
return response return response
\ No newline at end of file
...@@ -39,7 +39,7 @@ class SearchResultDoc(BaseModel): ...@@ -39,7 +39,7 @@ class SearchResultDoc(BaseModel):
stable_id: str stable_id: str
unversioned_stable_id: str unversioned_stable_id: str
biotype: str biotype: str
symbol: str symbol: str = None
name: str name: str
genome_id: str genome_id: str
transcript_count: int transcript_count: int
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment