forked from loafle/openapi-generator-original
typescript-angular: Fixed path parameter encoding for date-time dataFormat (#14114)
* Fixed path parameter encoding for date-time dataFromat * Regenerated samples
This commit is contained in:
parent
57644b6817
commit
e32b7a41b6
@ -196,7 +196,7 @@ export class {{configurationClassName}} {
|
|||||||
//
|
//
|
||||||
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
||||||
|
|
||||||
const value = param.dataFormat === 'date-time'
|
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
||||||
? (param.value as Date).toISOString()
|
? (param.value as Date).toISOString()
|
||||||
: param.value;
|
: param.value;
|
||||||
|
|
||||||
|
@ -157,7 +157,7 @@ export class Configuration {
|
|||||||
//
|
//
|
||||||
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
||||||
|
|
||||||
const value = param.dataFormat === 'date-time'
|
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
||||||
? (param.value as Date).toISOString()
|
? (param.value as Date).toISOString()
|
||||||
: param.value;
|
: param.value;
|
||||||
|
|
||||||
|
@ -157,7 +157,7 @@ export class Configuration {
|
|||||||
//
|
//
|
||||||
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
||||||
|
|
||||||
const value = param.dataFormat === 'date-time'
|
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
||||||
? (param.value as Date).toISOString()
|
? (param.value as Date).toISOString()
|
||||||
: param.value;
|
: param.value;
|
||||||
|
|
||||||
|
@ -157,7 +157,7 @@ export class Configuration {
|
|||||||
//
|
//
|
||||||
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
||||||
|
|
||||||
const value = param.dataFormat === 'date-time'
|
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
||||||
? (param.value as Date).toISOString()
|
? (param.value as Date).toISOString()
|
||||||
: param.value;
|
: param.value;
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ export class Configuration {
|
|||||||
//
|
//
|
||||||
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
||||||
|
|
||||||
const value = param.dataFormat === 'date-time'
|
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
||||||
? (param.value as Date).toISOString()
|
? (param.value as Date).toISOString()
|
||||||
: param.value;
|
: param.value;
|
||||||
|
|
||||||
|
@ -157,7 +157,7 @@ export class Configuration {
|
|||||||
//
|
//
|
||||||
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
||||||
|
|
||||||
const value = param.dataFormat === 'date-time'
|
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
||||||
? (param.value as Date).toISOString()
|
? (param.value as Date).toISOString()
|
||||||
: param.value;
|
: param.value;
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ export class Configuration {
|
|||||||
//
|
//
|
||||||
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
||||||
|
|
||||||
const value = param.dataFormat === 'date-time'
|
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
||||||
? (param.value as Date).toISOString()
|
? (param.value as Date).toISOString()
|
||||||
: param.value;
|
: param.value;
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ export class Configuration {
|
|||||||
//
|
//
|
||||||
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
||||||
|
|
||||||
const value = param.dataFormat === 'date-time'
|
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
||||||
? (param.value as Date).toISOString()
|
? (param.value as Date).toISOString()
|
||||||
: param.value;
|
: param.value;
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ export class Configuration {
|
|||||||
//
|
//
|
||||||
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
||||||
|
|
||||||
const value = param.dataFormat === 'date-time'
|
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
||||||
? (param.value as Date).toISOString()
|
? (param.value as Date).toISOString()
|
||||||
: param.value;
|
: param.value;
|
||||||
|
|
||||||
|
@ -157,7 +157,7 @@ export class Configuration {
|
|||||||
//
|
//
|
||||||
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
||||||
|
|
||||||
const value = param.dataFormat === 'date-time'
|
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
||||||
? (param.value as Date).toISOString()
|
? (param.value as Date).toISOString()
|
||||||
: param.value;
|
: param.value;
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ export class Configuration {
|
|||||||
//
|
//
|
||||||
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
||||||
|
|
||||||
const value = param.dataFormat === 'date-time'
|
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
||||||
? (param.value as Date).toISOString()
|
? (param.value as Date).toISOString()
|
||||||
: param.value;
|
: param.value;
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ export class Configuration {
|
|||||||
//
|
//
|
||||||
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
||||||
|
|
||||||
const value = param.dataFormat === 'date-time'
|
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
||||||
? (param.value as Date).toISOString()
|
? (param.value as Date).toISOString()
|
||||||
: param.value;
|
: param.value;
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ export class Configuration {
|
|||||||
//
|
//
|
||||||
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
||||||
|
|
||||||
const value = param.dataFormat === 'date-time'
|
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
||||||
? (param.value as Date).toISOString()
|
? (param.value as Date).toISOString()
|
||||||
: param.value;
|
: param.value;
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ export class Configuration {
|
|||||||
//
|
//
|
||||||
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
||||||
|
|
||||||
const value = param.dataFormat === 'date-time'
|
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
||||||
? (param.value as Date).toISOString()
|
? (param.value as Date).toISOString()
|
||||||
: param.value;
|
: param.value;
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ export class Configuration {
|
|||||||
//
|
//
|
||||||
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
||||||
|
|
||||||
const value = param.dataFormat === 'date-time'
|
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
||||||
? (param.value as Date).toISOString()
|
? (param.value as Date).toISOString()
|
||||||
: param.value;
|
: param.value;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user