diff --git a/modules/openapi-generator/src/main/resources/typescript-node/api.mustache b/modules/openapi-generator/src/main/resources/typescript-node/api.mustache index 098c2feb11c1..8916679189fc 100644 --- a/modules/openapi-generator/src/main/resources/typescript-node/api.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-node/api.mustache @@ -83,8 +83,8 @@ class ObjectSerializer { if (!typeMap[type]) { // in case we dont know the type return data; } - - // Get the actual type of this object + + // Get the actual type of this object type = this.findCorrectType(data, type); // get the map for the correct type. diff --git a/samples/client/petstore/typescript-node/default/api.ts b/samples/client/petstore/typescript-node/default/api.ts index d534f24414cf..a6e6c97eb340 100644 --- a/samples/client/petstore/typescript-node/default/api.ts +++ b/samples/client/petstore/typescript-node/default/api.ts @@ -92,8 +92,8 @@ class ObjectSerializer { if (!typeMap[type]) { // in case we dont know the type return data; } - - // Get the actual type of this object + + // Get the actual type of this object type = this.findCorrectType(data, type); // get the map for the correct type.