mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-05 18:22:41 +00:00
fix: mention PaginatedResponse in api generator error when list returned
Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
This commit is contained in:
parent
84d8f9056c
commit
15cf0e0b32
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ def _validate_api_method_doesnt_return_list(method) -> str | None:
|
|||
|
||||
return_type = hints['return']
|
||||
if get_origin(return_type) is list:
|
||||
return "returns a list where a List*Response object is expected"
|
||||
return "returns a list where a PaginatedResponse or List*Response object is expected"
|
||||
|
||||
|
||||
def _validate_api_delete_method_returns_none(method) -> str | None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue