Open lirenhe opened 5 days ago
A few options
ListTodoItemPagedIterable
which support stream and iterate (by item and by page).
apparent downside is that it makes up a name, which also makes it susceptible to naming conflict.PagedIterable<>
which support stream and iterate (by item and by page), then API returns e.g. PagedIterable<TodoItem>
it could be confusing if multiple such SDK is used together. but fine if only 1 SDK used.PagedIterable
in clientcoreTo me, seems (2) is fine.
TypeSpec already includes the support of Paging operation for unbranded: https://typespec.io/docs/standard-library/pagination/
Based on the current agreement, with
@list
,@pageItems
and@nextLink
, we could generate the paging operation similar with Azure style. Please also ensure related models for paging are added into unbranded core.