-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http-client-java, corner case of client without op or group (#4358)
Found when trying to write subclass as ```ts @client({ name: "ContosoClient", service: Cadl.ContosoServer, }) namespace Cadl.ContosoServer { @client({ name: "ContosoSubClient", service: Cadl.ContosoServer, }) namespace SubClient { @client({ name: "ContosoSubSubClient", service: Cadl.ContosoServer, }) @route("/contoso/") interface ServerOp { get(@path(#{ allowReserved: true }) group: string): OkResponse | NoContentResponse; } } } ``` <-- this likely not the correct way to write subclient (as Client be very different from subclient from nested namespace), but at least emitter should not throw After this PR, above tsp would result in `ContosoSubSubClient` client, as this is the only one containing operation.
- Loading branch information
1 parent
5a55338
commit 27c263e
Showing
5 changed files
with
37 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters