fixed building error

This commit is contained in:
2026-09-25 13:26:47 +02:00
parent 35809f4b55
commit 347c7ae520
+7 -7
View File
@@ -59,7 +59,7 @@ async def generate_person_bio(
)
async def get_person_by_id(
id: Annotated[
str, Path(description="OpenAlex author ID", examples=["A5093075883"])
str, Path(description="OpenAlex author ID", example=["A5093075883"])
],
include: Annotated[
str | None,
@@ -68,7 +68,7 @@ async def get_person_by_id(
"Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, "
"last_known_institutions, ..."
),
examples="topics_full,topic_share",
example="topics_full,topic_share",
),
] = None,
):
@@ -91,11 +91,11 @@ async def search_persons_by_name(
"Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, "
"last_known_institutions, ..."
),
examples="topics_full,topic_share",
example="topics_full,topic_share",
),
],
limit:Annotated[int | None, Query(description=("Limit of search page results"),examples ="2")]= None,
page_offset : Annotated[int | None, Query(description=("Offset of the result page"),examples="2")] = None,
limit:Annotated[int | None, Query(description=("Limit of search page results"),example="2")]= None,
page_offset : Annotated[int | None, Query(description=("Offset of the result page"),example="2")] = None,
):
return await logic.search_persons_by_name(author_name=author_name, include=include, page_offset=page_offset, limit=limit)
@@ -113,7 +113,7 @@ async def search_persons_autocomplete(
"Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, "
"last_known_institutions, ..."
),
examples="topics_full,topic_share"
example="topics_full,topic_share"
)]):
return await logic.search_persons_autocomplete(author_name=author_name, include=include)
@@ -153,7 +153,7 @@ async def search_persons_list(
str | None,
Query(
description="Comma-separated include tags",
examples="topics_full,topic_share",
example="topics_full,topic_share",
),
] = None,
year_filter_enabled: Annotated[