Describe the bug
for the following tsp, i got a compiler error to say list operation does not contain page items. also, the PagingOperation from getPagingOperation could not get the correct result for such nested case.
Reproduction
@list
op test(): ListTestResult;
model ListTestResult {
results: {
@pageItems
values: Test[];
};
pagination: {
@TypeSpec.nextLink
nextLink: string;
};
}
model Test {
id: string;
}
Checklist