File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
packages/http-client-csharp/emitter/src/lib Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -92,19 +92,6 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel {
92
92
const uri = getMethodUri ( endpointParameter ) ;
93
93
const clientParameters = fromSdkEndpointParameter ( endpointParameter ) ;
94
94
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
- }
108
95
109
96
return {
110
97
Name : clientName ,
You can’t perform that action at this time.
0 commit comments