fix: update parameter documentation to use 'examples' instead of 'example'
LocationBasedServices/smartguide/pipeline/head There was a failure building this commit
LocationBasedServices/smartguide/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -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, ..."
|
||||
),
|
||||
example="topics_full,topic_share",
|
||||
examples="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, ..."
|
||||
),
|
||||
example="topics_full,topic_share",
|
||||
examples="topics_full,topic_share",
|
||||
),
|
||||
],
|
||||
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,
|
||||
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,
|
||||
):
|
||||
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, ..."
|
||||
),
|
||||
example="topics_full,topic_share"
|
||||
examples="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",
|
||||
example="topics_full,topic_share",
|
||||
examples="topics_full,topic_share",
|
||||
),
|
||||
] = None,
|
||||
year_filter_enabled: Annotated[
|
||||
|
||||
Reference in New Issue
Block a user