Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 95c7760

Browse files
committed
Fix: array items
1 parent c831dc3 commit 95c7760

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

docs/api/templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Status Code **200**
157157

158158
| Name | Type | Required | Restrictions | Description |
159159
| ------------------------------------ | --------------------------------- | -------- | ------------ | ------------------------------------------ |
160-
| `*anonymous*` | array | false | | |
160+
| `[array items]` | array | false | | |
161161
| `» active_user_count` | integer | false | | ActiveUserCount is set to -1 when loading. |
162162
| `» active_version_id` | string | false | | |
163163
| `» allow_user_cancel_workspace_jobs` | boolean | false | | |

scripts/apidocgen/markdown-template/responses.def

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
}
2525
return renderSingleResponseType(r);
2626
}
27+
28+
function renderDisplayName(p) {
29+
if (p.displayName == "*anonymous*") {
30+
return "[array items]";
31+
}
32+
return p.displayName;
33+
}
2734
}}
2835
{{ data.responses = data.utils.getResponses(data); }}
2936
{{ data.responseSchemas = false; }}
@@ -77,7 +84,7 @@ Status Code **{{=response.status}}**
7784
{{?}}
7885
|Name|Type|Required|Restrictions|Description|
7986
|---|---|---|---|---|
80-
{{~block.rows :p}}|`{{=p.displayName}}`|{{? p.$ref}}`{{=p.$ref}}`{{?}}{{? !p.$ref}}{{=p.type}}{{?}}|{{=p.required}}|{{=p.restrictions||''}}|{{=p.description||''}}|
87+
{{~block.rows :p}}|`{{=renderDisplayName(p)}}`|{{? p.$ref}}`{{=p.$ref}}`{{?}}{{? !p.$ref}}{{=p.type}}{{?}}|{{=p.required}}|{{=p.restrictions||''}}|{{=p.description||''}}|
8188
{{~}}
8289
{{~}}
8390
{{?}}

0 commit comments

Comments
 (0)