Skip to content

Commit 095a463

Browse files
committed
Fix: It
1 parent 74de5d4 commit 095a463

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

docs/api/schemas.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
8888
| Name | Type | Required | Restrictions | Description |
8989
| ------------------ | ---------------------------------------------------------- | -------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
9090
| `checks` | object | false | | Checks is a map keyed with an arbitrary string to a permission check.<br>The key can be any string that is helpful to the caller, and allows<br>multiple permission checks to be run in a single request.<br>The key ensures that each permission check has the same key in the<br>response. |
91-
| » `[any property]` | [codersdk.AuthorizationCheck](#codersdkauthorizationcheck) | false | | » **additionalproperties** is used to check if the currently authenticated user (or the specified user) can do a given action to a given set of objects. |
91+
| » `[any property]` | [codersdk.AuthorizationCheck](#codersdkauthorizationcheck) | false | | It is used to check if the currently authenticated user (or the specified user) can do a given action to a given set of objects. |
9292

9393
## codersdk.AuthorizationResponse
9494

scripts/apidocgen/markdown-template/main.dot

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,15 @@
3333
return "";
3434
}
3535

36-
const toSnakeCase = str =>
37-
str
38-
.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)
39-
.map(x => x.toLowerCase())
40-
.join('_');
41-
4236
const words = p.description.split(' ');
4337
if (words.length == 0) {
4438
return "";
4539
}
4640

4741
const countUppercase = words[0].length - words[0].replace(/[A-Z]/g, '').length;
4842
if (countUppercase > 1) {
49-
const displayName = p.displayName.charAt(0).toUpperCase() + p.displayName.replaceAll("_", " ").toLowerCase().slice(1);
43+
let displayName = p.displayName.replaceAll("» **additionalProperties**", "It");
44+
displayName = displayName.charAt(0).toUpperCase() + displayName.replaceAll("_", " ").toLowerCase().slice(1);
5045
return displayName + " " + words.slice(1).join(' ');
5146
}
5247
return p.description;

0 commit comments

Comments
 (0)