Skip to content

[Bug]: tcgc result metadata is not being extracted correctly #1985

@qiaozha

Description

@qiaozha

Describe the bug

For this tsp

@error
model Error {
    code: int32;
    message: string;
}
 
@pagedResult
model Bar {
    @items
    lists: string[];
    @TypeSpec.nextLink
    nextLink: string;
}
 
model Child extends Bar {
    message: string
}
 
@post
op test(): Error | Child; 

the itemsSegments and nextLinkSegments are correct, but the method.nextLinkPath and method.response.resultPath is empty string.
Image

Reproduction

N/A

Checklist

  • Follow our Code of Conduct
  • Check that this issue is about the Azure libraries for typespec. For bug in the typespec language or core libraries file it in the TypeSpec repo
  • Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinglib:tcgcIssues for @azure-tools/typespec-client-generator-core library

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions