forked from
tangled.org/core
Monorepo for Tangled — https://tangled.org
1{
2 "lexicon": 1,
3 "id": "sh.tangled.repo.pull",
4 "needsCbor": true,
5 "needsType": true,
6 "defs": {
7 "main": {
8 "type": "record",
9 "key": "tid",
10 "record": {
11 "type": "object",
12 "required": [
13 "target",
14 "title",
15 "patchBlob",
16 "createdAt"
17 ],
18 "properties": {
19 "target": {
20 "type": "ref",
21 "ref": "#target"
22 },
23 "title": {
24 "type": "string"
25 },
26 "body": {
27 "type": "string"
28 },
29 "patch": {
30 "type": "string",
31 "description": "(deprecated) use patchBlob instead"
32 },
33 "patchBlob": {
34 "type": "blob",
35 "accept": "text/x-patch",
36 "description": "patch content"
37 },
38 "source": {
39 "type": "ref",
40 "ref": "#source"
41 },
42 "createdAt": {
43 "type": "string",
44 "format": "datetime"
45 },
46 "mentions": {
47 "type": "array",
48 "items": {
49 "type": "string",
50 "format": "did"
51 }
52 },
53 "references": {
54 "type": "array",
55 "items": {
56 "type": "string",
57 "format": "at-uri"
58 }
59 }
60 }
61 }
62 },
63 "target": {
64 "type": "object",
65 "required": [
66 "repo",
67 "branch"
68 ],
69 "properties": {
70 "repo": {
71 "type": "string",
72 "format": "at-uri"
73 },
74 "branch": {
75 "type": "string"
76 }
77 }
78 },
79 "source": {
80 "type": "object",
81 "required": [
82 "branch",
83 "sha"
84 ],
85 "properties": {
86 "branch": {
87 "type": "string"
88 },
89 "sha": {
90 "type": "string",
91 "minLength": 40,
92 "maxLength": 40
93 },
94 "repo": {
95 "type": "string",
96 "format": "at-uri"
97 }
98 }
99 }
100 }
101}