mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
Merge 09d04066889a74c5ffa2490da07a2e8ad13fec91 into d6c46342693205f0dae441b45742d9c85d41cf33
This commit is contained in:
commit
4976564f5b
@ -151,6 +151,9 @@ export class ObjectSerializer {
|
||||
}
|
||||
return transformedData;
|
||||
} else if (type === "Date") {
|
||||
if (typeof data === "string") {
|
||||
return new Date(data).toISOString();
|
||||
}
|
||||
return data.toISOString();
|
||||
} else {
|
||||
if (enumsMap[type]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user