Skip to content

[Bug]: current PagingOperation output does not support pageable decorator in nested properties #5208

@tadelesh

Description

@tadelesh

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions