Skip to content

Commit 5c245f5

Browse files
chore(docs): use obvious placeholders for the v2 share examples
GitGuardian flagged the sample share token as a high-entropy secret. It was always fake, but a random-looking token in the docs is worth avoiding on its own — a reader should never wonder whether an example value is real.
1 parent edfa378 commit 5c245f5

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

apps/docs/openapi-v2-files-audit.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,8 +1699,8 @@
16991699
"data": {
17001700
"share": {
17011701
"id": "shr_8Hf3kL9wQ2mNpXr6Tz1Vb",
1702-
"token": "k3Jt7QpW2xR8mZn4",
1703-
"url": "https://www.sim.ai/f/k3Jt7QpW2xR8mZn4",
1702+
"token": "share-token-example",
1703+
"url": "https://www.sim.ai/f/share-token-example",
17041704
"isActive": true,
17051705
"resourceType": "file",
17061706
"resourceId": "wf_V1StGXR8z5jdHi6BmyT91",
@@ -1806,7 +1806,7 @@
18061806
"workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
18071807
"isActive": true,
18081808
"authType": "password",
1809-
"password": "correct-horse-battery-staple"
1809+
"password": "EXAMPLE_PASSWORD"
18101810
}
18111811
},
18121812
"disable": {
@@ -1843,8 +1843,8 @@
18431843
"data": {
18441844
"share": {
18451845
"id": "shr_8Hf3kL9wQ2mNpXr6Tz1Vb",
1846-
"token": "k3Jt7QpW2xR8mZn4",
1847-
"url": "https://www.sim.ai/f/k3Jt7QpW2xR8mZn4",
1846+
"token": "share-token-example",
1847+
"url": "https://www.sim.ai/f/share-token-example",
18481848
"isActive": true,
18491849
"resourceType": "file",
18501850
"resourceId": "wf_V1StGXR8z5jdHi6BmyT91",
@@ -2436,13 +2436,13 @@
24362436
"token": {
24372437
"type": "string",
24382438
"description": "The public token embedded in the share URL. Always server-generated.",
2439-
"example": "k3Jt7QpW2xR8mZn4"
2439+
"example": "share-token-example"
24402440
},
24412441
"url": {
24422442
"type": "string",
24432443
"format": "uri",
24442444
"description": "The public share URL.",
2445-
"example": "https://www.sim.ai/f/k3Jt7QpW2xR8mZn4"
2445+
"example": "https://www.sim.ai/f/share-token-example"
24462446
},
24472447
"isActive": {
24482448
"type": "boolean",

0 commit comments

Comments
 (0)