Skip to content

Commit e7c13e1

Browse files
committed
fixes #997 - value in JSON example were not suffixed with comma if it it is not the last field
1 parent ab94985 commit e7c13e1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/components/api-request.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ export default class ApiRequest extends LitElement {
216216
${this.requestBodyTemplate()}
217217
${guard([this.method, this.path, this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('header'))}
218218
${guard([this.method, this.path, this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('cookie'))}
219-
//TODO: if this.allowTry === 'false' then it may be a good idea to show a complete curl syntax generated using schema and examples
220219
${this.allowTry === 'false' ? '' : html`${this.apiCallTemplate()}`}
221220
</div>
222221
</div>

src/components/json-tree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default class JsonTree extends LitElement {
102102

103103
generateTree(data, isLast = false) {
104104
if (data === null) {
105-
return html`<div class="null" style="display:inline;">null</div>`;
105+
return html`<span class="null">null</span>${isLast ? '' : ','}`;
106106
}
107107
if (typeof data === 'object' && (data instanceof Date === false)) {
108108
const detailType = Array.isArray(data) ? 'array' : 'pure_object';

0 commit comments

Comments
 (0)