Skip to content

[typespec/http] namespace is missing in the parsed models for responses #5664

Open
@ArcturusZhang

Description

@ArcturusZhang

Playground: link

We expect we get a proper namespace for the return type of operation getServiceStatus, and it should be Azure.Core because this anonymous model is effectively defined inside the template therefore it might make sense.
But actually when we get this model back from

responses: HttpOperationResponseContent[];

the body.type (which is a model) has no namespace on it:
Image
while its original model has namespace:
Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions