Skip to content

Commit 07c774f

Browse files
committed
remove the diagnostic, will add it into csharp side later
1 parent b742e16 commit 07c774f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

packages/http-client-csharp/emitter/src/lib/client-model-builder.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,6 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel {
9292
const uri = getMethodUri(endpointParameter);
9393
const clientParameters = fromSdkEndpointParameter(endpointParameter);
9494
const clientName = getClientName(client, parentNames);
95-
// see if this namespace is a sub-namespace of an existing bad namespace
96-
const segments = client.namespace.split(".");
97-
const lastSegment = segments[segments.length - 1];
98-
if (lastSegment === clientName) {
99-
// we report diagnostics when the last segment of the namespace is the same as the client name
100-
// because in our design, a sub namespace will be generated as a sub client with exact the same name as the namespace
101-
// in csharp, this will cause a conflict between the namespace and the class name
102-
sdkContext.logger.reportDiagnostic({
103-
code: "client-namespace-conflict",
104-
format: { namespace: client.namespace, clientName },
105-
target: client.__raw.type ?? NoTarget,
106-
});
107-
}
10895

10996
return {
11097
Name: clientName,

0 commit comments

Comments
 (0)