@@ -59,6 +59,7 @@ export default class ApiRequest extends LitElement {
59
59
activeResponseTab : { type : String } , // internal tracking of response-tab not exposed as a attribute
60
60
selectedRequestBodyType : { type : String , attribute : 'selected-request-body-type' } , // internal tracking of selected request-body type
61
61
selectedRequestBodyExample : { type : String , attribute : 'selected-request-body-example' } , // internal tracking of selected request-body example
62
+ renderedOnce : { type : Boolean } ,
62
63
} ;
63
64
}
64
65
@@ -282,7 +283,7 @@ export default class ApiRequest extends LitElement {
282
283
data-param-serialize-explode = "${ paramExplode } "
283
284
data-array = "true "
284
285
placeholder = "add-multiple ⮐ "
285
- . value = "${ exampleVal } "
286
+ value = "${ Array . isArray ( exampleVal ) ? exampleVal . join ( ',' ) : exampleVal } "
286
287
>
287
288
</ tag-input > `
288
289
: paramSchema . type === 'object'
@@ -654,7 +655,7 @@ export default class ApiRequest extends LitElement {
654
655
data-example = "${ Array . isArray ( fieldSchema . example ) ? fieldSchema . example . join ( '~|~' ) : fieldSchema . example || '' } "
655
656
data-array = "true "
656
657
placeholder = "add-multiple ⮐ "
657
- . value = "${ fieldSchema . example || '' } "
658
+ value = "${ Array . isArray ( fieldSchema . example ) ? fieldSchema . example . join ( ',' ) : fieldSchema . example } "
658
659
>
659
660
</ tag-input >
660
661
`
@@ -1170,9 +1171,6 @@ export default class ApiRequest extends LitElement {
1170
1171
curlHeaders += ` -H "Content-Type: ${ requestBodyType } " \\\n` ;
1171
1172
}
1172
1173
1173
- fetchOptions . headers [ 'Cache-Control' ] = 'no-cache' ;
1174
- curlHeaders += ' -H "Cache-Control: no-cache" \\\n' ;
1175
-
1176
1174
me . responseUrl = '' ;
1177
1175
me . responseHeaders = '' ;
1178
1176
// me.responseText = '';
0 commit comments