You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
generate return model for each API as e.g. 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.
generate template e.g. 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.
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.
The text was updated successfully, but these errors were encountered: