File tree Expand file tree Collapse file tree
modules/swagger-codegen/src/main/resources/typescript-fetch Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export interface FetchAPI {
2929}
3030
3131/**
32- *
32+ *
3333 * @export
3434 * @interface FetchArgs
3535 */
@@ -39,7 +39,7 @@ export interface FetchArgs {
3939}
4040
4141/**
42- *
42+ *
4343 * @export
4444 * @class BaseAPI
4545 */
@@ -55,7 +55,7 @@ export class BaseAPI {
5555};
5656
5757/**
58- *
58+ *
5959 * @export
6060 * @class RequiredError
6161 * @extends { Error}
@@ -164,7 +164,9 @@ export const {{classname}}FetchParamCreator = function (configuration?: Configur
164164 {{/isDateTime}}
165165 {{^isDateTime}}
166166 {{#isDate}}
167- localVarQueryParameter['{{baseName}}'] = ({{paramName}} as any).toISOString();
167+ localVarQueryParameter['{{baseName}}'] = ({{paramName}} as any instanceof Date) ?
168+ ({{paramName}} as any).toISOString().substr(0,10) :
169+ {{paramName}};
168170 {{/isDate}}
169171 {{^isDate}}
170172 localVarQueryParameter['{{baseName}}'] = {{paramName}};
You can’t perform that action at this time.
0 commit comments