mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
Merge eac6157c6b681086ac4299139cc75c9bf2fcb8c4 into d6c46342693205f0dae441b45742d9c85d41cf33
This commit is contained in:
commit
d23a2b63c0
@ -111,11 +111,11 @@ export class {{classname}} extends BaseAPI {
|
||||
{{/isArray}}
|
||||
{{^isArray}}
|
||||
{{#isDateTime}}
|
||||
'{{baseName}}': ({{> paramNamePartial}} as any).toISOString(),
|
||||
'{{baseName}}': new Date({{> paramNamePartial}} as any).toISOString(),
|
||||
{{/isDateTime}}
|
||||
{{^isDateTime}}
|
||||
{{#isDate}}
|
||||
'{{baseName}}': ({{> paramNamePartial}} as any).toISOString().split('T')[0],
|
||||
'{{baseName}}': new Date({{> paramNamePartial}} as any).toISOString().split('T')[0],
|
||||
{{/isDate}}
|
||||
{{^isDate}}
|
||||
'{{baseName}}': {{> paramNamePartial}},
|
||||
@ -140,11 +140,11 @@ export class {{classname}} extends BaseAPI {
|
||||
{{/isArray}}
|
||||
{{^isArray}}
|
||||
{{#isDateTime}}
|
||||
if ({{> paramNamePartial}} != null) { query['{{baseName}}'] = ({{> paramNamePartial}} as any).toISOString(); }
|
||||
if ({{> paramNamePartial}} != null) { query['{{baseName}}'] = new Date({{> paramNamePartial}} as any).toISOString(); }
|
||||
{{/isDateTime}}
|
||||
{{^isDateTime}}
|
||||
{{#isDate}}
|
||||
if ({{> paramNamePartial}} != null) { query['{{baseName}}'] = ({{> paramNamePartial}} as any).toISOString().split('T')[0]; }
|
||||
if ({{> paramNamePartial}} != null) { query['{{baseName}}'] = new Date({{> paramNamePartial}} as any).toISOString().split('T')[0]; }
|
||||
{{/isDate}}
|
||||
{{^isDate}}
|
||||
if ({{> paramNamePartial}} != null) { query['{{baseName}}'] = {{> paramNamePartial}}; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user