Skip to content

Commit ff43d10

Browse files
committed
[wip] add bitbucket schema
1 parent c201a5e commit ff43d10

File tree

1 file changed

+104
-0
lines changed

1 file changed

+104
-0
lines changed

schemas/v3/bitbucket_data_center.json

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"title": "BitbucketConnectionConfig",
5+
"properties": {
6+
"type": {
7+
"const": "bitbucket",
8+
"description": "Bitbucket configuration"
9+
},
10+
"url": {
11+
"type": "string",
12+
"format": "url",
13+
"default": "https://api.bitbucket.org/2.0",
14+
"description": "Bitbucket URL",
15+
"examples": [
16+
"https://bitbucket.example.com"
17+
],
18+
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$"
19+
},
20+
"serverType": {
21+
"type": "string",
22+
"enum": ["cloud", "server"],
23+
"default": "cloud",
24+
"description": "server type"
25+
},
26+
"token": {
27+
"$ref": "./shared.json#/definitions/Token",
28+
"description": "An authentication token.",
29+
"examples": [
30+
{
31+
"secret": "SECRET_KEY"
32+
}
33+
]
34+
},
35+
"user": {
36+
"type": "string",
37+
"description": "User name for authentication"
38+
},
39+
"exclude": {
40+
"type": "object",
41+
"properties": {
42+
"archived": {
43+
"type": "boolean",
44+
"default": false,
45+
"description": "Exclude archived repositories from syncing."
46+
},
47+
"forks": {
48+
"type": "boolean",
49+
"default": false,
50+
"description": "Exclude forked repositories from syncing."
51+
},
52+
"workspaces": {
53+
"type": "array",
54+
"items": {
55+
"type": "string"
56+
},
57+
"examples": [
58+
[
59+
"workspace1/repo1",
60+
"workspace2/**"
61+
]
62+
],
63+
"description": "List of specific workspaces to exclude from syncing."
64+
},
65+
"projects": {
66+
"type": "array",
67+
"items": {
68+
"type": "string"
69+
},
70+
"examples": [
71+
[
72+
"project1/repo1",
73+
"project2/**"
74+
]
75+
],
76+
"description": "List of specific projects to exclude from syncing."
77+
},
78+
"repos": {
79+
"type": "array",
80+
"items": {
81+
"type": "string"
82+
},
83+
"examples": [
84+
[
85+
"workspace1/repo1",
86+
"workspace2/**"
87+
]
88+
],
89+
"description": "List of specific repos to exclude from syncing."
90+
}
91+
},
92+
"additionalProperties": false
93+
},
94+
"revisions": {
95+
"$ref": "./shared.json#/definitions/GitRevisions"
96+
}
97+
},
98+
"required": [
99+
"token",
100+
"type",
101+
"user"
102+
],
103+
"additionalProperties": false
104+
}

0 commit comments

Comments
 (0)