Skip to content

Commit b99a648

Browse files
committed
fix token examples in schema
1 parent 63af99a commit b99a648

File tree

7 files changed

+9
-18
lines changed

7 files changed

+9
-18
lines changed

packages/schemas/src/v3/connection.schema.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ const schema = {
1515
"token": {
1616
"description": "A Personal Access Token (PAT).",
1717
"examples": [
18-
"secret-token",
1918
{
20-
"env": "ENV_VAR_CONTAINING_TOKEN"
19+
"secret": "SECRET_KEY"
2120
}
2221
],
2322
"type": "object",
@@ -208,9 +207,8 @@ const schema = {
208207
"$ref": "#/oneOf/0/properties/token",
209208
"description": "An authentication token.",
210209
"examples": [
211-
"secret-token",
212210
{
213-
"env": "ENV_VAR_CONTAINING_TOKEN"
211+
"secret": "SECRET_KEY"
214212
}
215213
]
216214
},
@@ -346,9 +344,8 @@ const schema = {
346344
"$ref": "#/oneOf/0/properties/token",
347345
"description": "A Personal Access Token (PAT).",
348346
"examples": [
349-
"secret-token",
350347
{
351-
"env": "ENV_VAR_CONTAINING_TOKEN"
348+
"secret": "SECRET_KEY"
352349
}
353350
]
354351
},

packages/schemas/src/v3/gitea.schema.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ const schema = {
1111
"token": {
1212
"description": "A Personal Access Token (PAT).",
1313
"examples": [
14-
"secret-token",
1514
{
16-
"env": "ENV_VAR_CONTAINING_TOKEN"
15+
"secret": "SECRET_KEY"
1716
}
1817
],
1918
"type": "object",

packages/schemas/src/v3/github.schema.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ const schema = {
1111
"token": {
1212
"description": "A Personal Access Token (PAT).",
1313
"examples": [
14-
"secret-token",
1514
{
16-
"env": "ENV_VAR_CONTAINING_TOKEN"
15+
"secret": "SECRET_KEY"
1716
}
1817
],
1918
"type": "object",

packages/schemas/src/v3/gitlab.schema.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ const schema = {
1111
"token": {
1212
"description": "An authentication token.",
1313
"examples": [
14-
"secret-token",
1514
{
16-
"env": "ENV_VAR_CONTAINING_TOKEN"
15+
"secret": "SECRET_KEY"
1716
}
1817
],
1918
"type": "object",

schemas/v3/gitea.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
"$ref": "./shared.json#/definitions/Token",
1212
"description": "A Personal Access Token (PAT).",
1313
"examples": [
14-
"secret-token",
1514
{
16-
"env": "ENV_VAR_CONTAINING_TOKEN"
15+
"secret": "SECRET_KEY"
1716
}
1817
]
1918
},

schemas/v3/github.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
"$ref": "./shared.json#/definitions/Token",
1212
"description": "A Personal Access Token (PAT).",
1313
"examples": [
14-
"secret-token",
1514
{
16-
"env": "ENV_VAR_CONTAINING_TOKEN"
15+
"secret": "SECRET_KEY"
1716
}
1817
]
1918
},

schemas/v3/gitlab.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
"$ref": "./shared.json#/definitions/Token",
1212
"description": "An authentication token.",
1313
"examples": [
14-
"secret-token",
1514
{
16-
"env": "ENV_VAR_CONTAINING_TOKEN"
15+
"secret": "SECRET_KEY"
1716
}
1817
]
1918
},

0 commit comments

Comments
 (0)