File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
modules/openapi-generator/src/main/java/org/openapitools/codegen Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2059,7 +2059,11 @@ public String toInstantiationType(Schema schema) {
2059
2059
if (ModelUtils .isMapSchema (schema )) {
2060
2060
Schema additionalProperties = ModelUtils .getAdditionalProperties (schema );
2061
2061
String inner = getSchemaType (additionalProperties );
2062
- return instantiationTypes .get ("map" ) + "<String, " + inner + ">" ;
2062
+ String mapInstantion = instantiationTypes .get ("map" );
2063
+ if (mapInstantion != null ) {
2064
+ return mapInstantion + "<String, " + inner + ">" ;
2065
+ }
2066
+ return inner ;
2063
2067
} else if (ModelUtils .isArraySchema (schema )) {
2064
2068
ArraySchema arraySchema = (ArraySchema ) schema ;
2065
2069
String inner = getSchemaType (getSchemaItems (arraySchema ));
You can’t perform that action at this time.
0 commit comments