-
Notifications
You must be signed in to change notification settings - Fork 331
Open
Labels
bugSomething isn't workingSomething isn't workingemitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharpIssue for the C# client emitter: @typespec/http-client-csharp
Description
Describe the bug
Generating code works, but the namespaces of REST client files are incorrectly generating namespaces.
The Namespace of the normal models are Azure.Search.Documents.Models but the REST client seems to do something weird and ends up as Azure.Azure.Search.Documents.Documents...
Reproduction
Delete autorest.md located in Azure.Search.Documents/src/autorest.md
Add a new tsp-location.yaml file in Azure.Search.Documents/:
repo: Azure/azure-rest-api-specs
commit: 9178d923b13fd9a226fe83be1e31b70651fc35bd
directory: specification/search/data-plane/Search
emitterPackageJsonPath: eng/azure-typespec-http-client-csharp-emitter-package.json
Within the /search folder in https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/search/Azure.Search.Documents , run dotnet build /t:GenerateCode
Checklist
- Follow our Code of Conduct
- Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingemitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharpIssue for the C# client emitter: @typespec/http-client-csharp