File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/resources/typescript-rxjs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ export class {{classname}} extends BaseAPI {
108108 { {/isDateTime} }
109109 { {^isDateTime} }
110110 { {#isDate} }
111- '{ {baseName} }': ({ {> paramNamePartial} } as any).toISOString(),
111+ '{ {baseName} }': ({ {> paramNamePartial} } as any).toISOString().split('T')[0] ,
112112 { {/isDate} }
113113 { {^isDate} }
114114 '{ {baseName} }': { {> paramNamePartial} },
@@ -137,7 +137,7 @@ export class {{classname}} extends BaseAPI {
137137 { {/isDateTime} }
138138 { {^isDateTime} }
139139 { {#isDate} }
140- if ({ {> paramNamePartial} } != null) { query[' {{baseName}}' ] = ({{> paramNamePartial} } as any).toISOString(); }
140+ if ({ {> paramNamePartial} } != null) { query[' {{baseName}}' ] = ({{> paramNamePartial} } as any).toISOString().split('T')[0] ; }
141141 { {/isDate} }
142142 { {^isDate} }
143143 if ({ {> paramNamePartial} } != null) { query[' {{baseName}}' ] = {{> paramNamePartial} }; }
You can’t perform that action at this time.
0 commit comments