Skip to content

Commit ce22675

Browse files
Sync webhook schemas from private repo
1 parent 6eb088a commit ce22675

File tree

5 files changed

+162
-0
lines changed

5 files changed

+162
-0
lines changed

webhook_schemas/branch.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"$id": "branch",
4+
"type": "object",
5+
"properties": {
6+
"name": {
7+
"type": "string"
8+
}
9+
},
10+
"required": [
11+
"name"
12+
]
13+
}

webhook_schemas/project.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
3+
{
4+
"$schema": "http://json-schema.org/draft-04/schema#",
5+
"$id": "project",
6+
"type": "object",
7+
"properties": {
8+
"id": {
9+
"type": "string"
10+
},
11+
"name": {
12+
"type": "string"
13+
},
14+
"main_format": {
15+
"type": [
16+
"string",
17+
"null"
18+
]
19+
},
20+
"created_at": {
21+
"type": "string",
22+
"format": "date-time"
23+
},
24+
"updated_at": {
25+
"type": "string",
26+
"format": "date-time"
27+
}
28+
},
29+
"required": [
30+
"id",
31+
"name",
32+
"main_format",
33+
"created_at",
34+
"updated_at"
35+
]
36+
}

webhook_schemas/release.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"$id": "release",
4+
"type": "object",
5+
"properties": {
6+
"id": {
7+
"type": "string"
8+
},
9+
"version": {
10+
"type": "integer"
11+
},
12+
"app_min_version": {
13+
"type": "string"
14+
},
15+
"app_max_version": {
16+
"type": "string"
17+
},
18+
"description": {
19+
"type": [
20+
"string",
21+
"null"
22+
]
23+
},
24+
"platforms": {
25+
"type": "array",
26+
"items": {
27+
"type": "string"
28+
}
29+
},
30+
"environments": {
31+
"type": "array",
32+
"items": {
33+
"type": "string"
34+
}
35+
},
36+
"locale_codes": {
37+
"type": "array",
38+
"items": {
39+
"type": "string"
40+
}
41+
},
42+
"tags": {
43+
"type": "array",
44+
"items": {
45+
"type": "string"
46+
}
47+
},
48+
"created_at": {
49+
"type": "string",
50+
"format": "date-time"
51+
},
52+
"updated_at": {
53+
"type": "string",
54+
"format": "date-time"
55+
}
56+
},
57+
"required": [
58+
"id",
59+
"version",
60+
"app_min_version",
61+
"app_max_version",
62+
"platforms",
63+
"environments",
64+
"locale_codes",
65+
"tags",
66+
"created_at",
67+
"updated_at"
68+
]
69+
}

webhook_schemas/test.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"$id": "test",
4+
"type": "object",
5+
"properties": {
6+
"attribute": {
7+
"type": "string"
8+
}
9+
},
10+
"required": [
11+
"attribute"
12+
]
13+
}

webhook_schemas/user.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"$id": "user",
4+
"type": "object",
5+
"properties": {
6+
"id": {
7+
"type": "string"
8+
},
9+
"username": {
10+
"type": "string"
11+
},
12+
"name": {
13+
"type": [
14+
"string",
15+
"null"
16+
]
17+
},
18+
"gravatar_uid": {
19+
"type": [
20+
"string",
21+
"null"
22+
]
23+
}
24+
},
25+
"required": [
26+
"id",
27+
"username",
28+
"name",
29+
"gravatar_uid"
30+
]
31+
}

0 commit comments

Comments
 (0)