diff --git a/service/src/main/inse/persons/service.py b/service/src/main/inse/persons/service.py index d95ca046..826ffc4d 100644 --- a/service/src/main/inse/persons/service.py +++ b/service/src/main/inse/persons/service.py @@ -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[