Monorepo for Tangled
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": [
36 "text/x-patch"
37 ],
38 "description": "patch content"
39 },
40 "source": {
41 "type": "ref",
42 "ref": "#source"
43 },
44 "createdAt": {
45 "type": "string",
46 "format": "datetime"
47 },
48 "mentions": {
49 "type": "array",
50 "items": {
51 "type": "string",
52 "format": "did"
53 }
54 },
55 "references": {
56 "type": "array",
57 "items": {
58 "type": "string",
59 "format": "at-uri"
60 }
61 }
62 }
63 }
64 },
65 "target": {
66 "type": "object",
67 "required": [
68 "repo",
69 "branch"
70 ],
71 "properties": {
72 "repo": {
73 "type": "string",
74 "format": "at-uri"
75 },
76 "branch": {
77 "type": "string"
78 }
79 }
80 },
81 "source": {
82 "type": "object",
83 "required": [
84 "branch",
85 "sha"
86 ],
87 "properties": {
88 "branch": {
89 "type": "string"
90 },
91 "sha": {
92 "type": "string",
93 "minLength": 40,
94 "maxLength": 40
95 },
96 "repo": {
97 "type": "string",
98 "format": "at-uri"
99 }
100 }
101 }
102 }
103}