@@ -364,8 +364,8 @@ export default class ApiRequest extends LitElement {
364
364
this . activeParameterSchemaTabs = newState ;
365
365
}
366
366
} } ">
367
- < button class ="tab-btn ${ this . activeParameterSchemaTabs [ param . name ] !== 'example' ? 'active' : '' } " data-tab = 'schema '> SCHEMA</ button >
368
367
< button class ="tab-btn ${ this . activeParameterSchemaTabs [ param . name ] === 'example' ? 'active' : '' } " data-tab = 'example '> EXAMPLE </ button >
368
+ < button class ="tab-btn ${ this . activeParameterSchemaTabs [ param . name ] !== 'example' ? 'active' : '' } " data-tab = 'schema '> SCHEMA</ button >
369
369
</ div >
370
370
${ this . activeParameterSchemaTabs [ param . name ] === 'example'
371
371
? html `< div class ="tab-content col ">
@@ -673,8 +673,8 @@ export default class ApiRequest extends LitElement {
673
673
? html `
674
674
< div class ="tab-panel col " style ="border-width:0 0 1px 0; ">
675
675
< div class ="tab-buttons row " @click ="${ ( e ) => { if ( e . target . tagName . toLowerCase ( ) === 'button' ) { this . activeSchemaTab = e . target . dataset . tab ; } } } ">
676
- < button class ="tab-btn ${ this . activeSchemaTab !== 'example' ? 'active' : '' } " data-tab = 'schema '> SCHEMA</ button >
677
676
< button class ="tab-btn ${ this . activeSchemaTab === 'example' ? 'active' : '' } " data-tab = 'example '> EXAMPLE</ button >
677
+ < button class ="tab-btn ${ this . activeSchemaTab !== 'example' ? 'active' : '' } " data-tab = 'schema '> SCHEMA</ button >
678
678
</ div >
679
679
${ this . activeSchemaTab === 'example'
680
680
? html `< div class ="tab-content col "> ${ reqBodyExampleHtml } </ div > `
@@ -723,20 +723,10 @@ export default class ApiRequest extends LitElement {
723
723
}
724
724
if ( e . target . tagName . toLowerCase ( ) === 'button' ) { this . activeSchemaTab = e . target . dataset . tab ; }
725
725
} } ">
726
- < button class ="v-tab-btn ${ this . activeSchemaTab !== 'example' ? 'active' : '' } " data-tab = 'schema '> SCHEMA</ button >
727
726
< button class ="v-tab-btn ${ this . activeSchemaTab === 'example' ? 'active' : '' } " data-tab = 'example '> EXAMPLE</ button >
727
+ < button class ="v-tab-btn ${ this . activeSchemaTab !== 'example' ? 'active' : '' } " data-tab = 'schema '> SCHEMA</ button >
728
728
</ div >
729
729
</ div >
730
- ${ html `
731
- < div class ="tab-content col " data-tab = 'schema ' style ="display:${ this . activeSchemaTab !== 'example' ? 'block' : 'none' } ; padding-left:5px; width:100%; ">
732
- < schema-tree
733
- .data = '${ formdataPartSchema } '
734
- schema-expand-level = "${ this . schemaExpandLevel } "
735
- schema-description-expanded = "${ this . schemaDescriptionExpanded } "
736
- allow-schema-description-expand-toggle = "${ this . allowSchemaDescriptionExpandToggle } ",
737
- > </ schema-tree >
738
- </ div > `
739
- }
740
730
${ html `
741
731
< div class ="tab-content col " data-tab = 'example ' style ="display:${ this . activeSchemaTab === 'example' ? 'block' : 'none' } ; padding-left:5px; width:100% ">
742
732
< textarea
@@ -754,6 +744,16 @@ export default class ApiRequest extends LitElement {
754
744
< textarea data-pname = "hidden- ${ fieldName } " data-ptype = "${ mimeType . includes ( 'form-urlencode' ) ? 'hidden-form-urlencode' : 'hidden-form-data' } " class ="is-hidden " style ="display:none "> ${ formdataPartExample [ 0 ] . exampleValue } </ textarea >
755
745
</ div > `
756
746
}
747
+ ${ html `
748
+ < div class ="tab-content col " data-tab = 'schema ' style ="display:${ this . activeSchemaTab !== 'example' ? 'block' : 'none' } ; padding-left:5px; width:100%; ">
749
+ < schema-tree
750
+ .data = '${ formdataPartSchema } '
751
+ schema-expand-level = "${ this . schemaExpandLevel } "
752
+ schema-description-expanded = "${ this . schemaDescriptionExpanded } "
753
+ allow-schema-description-expand-toggle = "${ this . allowSchemaDescriptionExpandToggle } ",
754
+ > </ schema-tree >
755
+ </ div > `
756
+ }
757
757
</ div >
758
758
` ;
759
759
}
0 commit comments