We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfc989c commit 9cc893dCopy full SHA for 9cc893d
modules/openapi-generator/src/main/resources/typescript/model/ObjectSerializer.mustache
@@ -177,6 +177,9 @@ export class ObjectSerializer {
177
}
178
return transformedData;
179
} else if (type === "Date") {
180
+ if (!(data instanceof Date)) {
181
+ return data;
182
+ }
183
if (format == "date") {
184
let month = data.getMonth()+1
185
month = month < 10 ? "0" + month.toString() : month.toString()
0 commit comments