File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
modules/openapi-generator/src/main/java/org/openapitools/codegen/languages Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 4444import java .util .regex .Pattern ;
4545import java .util .stream .Collectors ;
4646
47- import static org .openapitools .codegen .languages .CSharpClientCodegen .GENERICHOST ;
4847import static org .openapitools .codegen .utils .CamelizeOption .LOWERCASE_FIRST_LETTER ;
4948import static org .openapitools .codegen .utils .StringUtils .camelize ;
5049import static org .openapitools .codegen .utils .StringUtils .underscore ;
@@ -1466,12 +1465,7 @@ public String getTypeDeclaration(Schema p) {
14661465 } else if (ModelUtils .isMapSchema (p )) {
14671466 // Should we also support maps of maps?
14681467 Schema <?> inner = ModelUtils .getAdditionalProperties (p );
1469- String typeDeclaration = getTypeDeclaration (inner );
1470- if (!GENERICHOST .equals (getLibrary ())) {
1471- if (ModelUtils .isNullable (inner ) && (this .nullReferenceTypesFlag || ModelUtils .isEnumSchema (inner ) || getValueTypes ().contains (typeDeclaration )) && !typeDeclaration .endsWith ("?" )) {
1472- typeDeclaration += "?" ;
1473- }
1474- }
1468+ String typeDeclaration = getNullableSchemaType (inner );
14751469 return getSchemaType (p ) + "<string, " + typeDeclaration + ">" ;
14761470 }
14771471 return super .getTypeDeclaration (p );
You can’t perform that action at this time.
0 commit comments