File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
modules/openapi-generator/src/main/resources/typescript-fetch Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,12 @@ export class {{classname}} extends runtime.BaseAPI {
290
290
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map({{returnBaseType}}FromJSON));
291
291
{{/isListContainer}}
292
292
{{^isListContainer}}
293
+ {{#isMapContainer}}
294
+ return new runtime.JSONApiResponse(response, (jsonValue) => runtime.mapValues(jsonValue, {{returnBaseType}}FromJSON));
295
+ {{/isMapContainer}}
296
+ {{^isMapContainer}}
293
297
return new runtime.JSONApiResponse(response, (jsonValue) => {{returnBaseType}}FromJSON(jsonValue));
298
+ {{/isMapContainer}}
294
299
{{/isListContainer}}
295
300
{{/returnTypeIsPrimitive}}
296
301
{{/isResponseFile}}
You can’t perform that action at this time.
0 commit comments