You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable http-service-csharp causes change of TCGC crossLanguageDefinitionId (which is generated from Namespace/Interface/Operation or Model) in http-client-java allenjzhang/typespec-e2e-demo@d48c548
E.g. Todo.TodoItems.Attachments.createFileAttachment becomes Todo.TodoItems.Attachments.AttachmentsOperations.createFileAttachment, with http-service-csharp enabled.
I kind of assume the processing of emitters should be independent from each other. I didn't expect processing in one emitter would affect other emitters.
Reproduction
Generate typespec-e2e-demo/todoApp with both "http-service-csharp" and "http-client-java". See the content of "todoApp/clients/java/src/main/resources/META-INF/todo_apiview_properties.json" file.
Describe the bug
Enable
http-service-csharp
causes change of TCGCcrossLanguageDefinitionId
(which is generated from Namespace/Interface/Operation or Model) in http-client-javaallenjzhang/typespec-e2e-demo@d48c548
E.g.
Todo.TodoItems.Attachments.createFileAttachment
becomesTodo.TodoItems.Attachments.AttachmentsOperations.createFileAttachment
, withhttp-service-csharp
enabled.Not sure if the cause is this code
https://github.com/microsoft/typespec/blob/main/packages/http-server-csharp/src/service.ts#L1344-L1354
I kind of assume the processing of emitters should be independent from each other. I didn't expect processing in one emitter would affect other emitters.
Reproduction
Generate
typespec-e2e-demo/todoApp
with both "http-service-csharp" and "http-client-java". See the content of "todoApp/clients/java/src/main/resources/META-INF/todo_apiview_properties.json" file.Checklist
The text was updated successfully, but these errors were encountered: