File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ export default class ApiResponse extends LitElement {
114
114
true ,
115
115
mimeResp . includes ( 'json' ) ? 'json' : 'text' ,
116
116
) ;
117
+
117
118
allMimeResp [ mimeResp ] = {
118
119
description : this . responses [ statusCode ] . description ,
119
120
examples : respExample ,
@@ -165,14 +166,14 @@ export default class ApiResponse extends LitElement {
165
166
: html `${ this . mimeTypeDropdownTemplate ( Object . keys ( this . mimeResponsesForEachStatus [ status ] ) ) } `
166
167
}
167
168
</ div >
168
-
169
- < div class ='tab-content col ' style = 'flex:1; display: ${ this . activeSchemaTab === 'example' ? 'flex' : 'none' } ; '>
170
- ${ this . mimeExampleTemplate ( this . mimeResponsesForEachStatus [ status ] [ this . selectedMimeType ] ) }
171
- </ div >
172
- < div class =" tab-content col " style =" flex:1; display: ${ this . activeSchemaTab === 'model' ? ' flex' : 'none' } ; " >
173
- ${ this . mimeSchemaTemplate ( this . mimeResponsesForEachStatus [ status ] [ this . selectedMimeType ] ) }
174
- </ div >
175
-
169
+ ${ this . activeSchemaTab === 'example'
170
+ ? html ` < div class ='tab-content col ' style = 'flex:1; '>
171
+ ${ this . mimeExampleTemplate ( this . mimeResponsesForEachStatus [ status ] [ this . selectedMimeType ] ) }
172
+ </ div > `
173
+ : html ` < div class =' tab-content col ' style = ' flex:1; ' >
174
+ ${ this . mimeSchemaTemplate ( this . mimeResponsesForEachStatus [ status ] [ this . selectedMimeType ] ) }
175
+ </ div > `
176
+ }
176
177
</ div >
177
178
`
178
179
} `)
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ export default class SchemaTree extends LitElement {
149
149
${ data [ '::type' ] === 'xxx-of-option' || prevKey . startsWith ( '::OPTION' )
150
150
? html `< span class ='xxx-of-key '> ${ newPrevKey } </ span > `
151
151
: newPrevKey . endsWith ( '*' )
152
- ? html `${ newPrevKey . substring ( 0 , newPrevKey . length - 1 ) } < span style ='color:var(--red);margin-left:-6px '> *</ span > `
152
+ ? html `${ newPrevKey . substring ( 0 , newPrevKey . length - 1 ) } < span style ='color:var(--red); '> *</ span > `
153
153
: newPrevKey
154
154
} ${ level > 0 ? ':' : '' } ${ openBracket }
155
155
</ div >
You can’t perform that action at this time.
0 commit comments