dev.knotless.createComment
Schema Diff
+9 -0
Compatibility Analysis
Backward Compatible
Backward compatible. 6 non-breaking changes.
Non-Breaking Changes (6)
- AddedVertex AddedVertex { vertex_id: "dev.knotless.createComment:input.images" }
- AddedVertex AddedVertex { vertex_id: "dev.knotless.createComment:input.images:items" }
- AddedVertex AddedVertex { vertex_id: "dev.knotless.defs#image" }
- AddedEdge AddedEdge { src: "dev.knotless.createComment:input", tgt: "dev.knotless.createComment:input.images", kind: "prop", name: Some("images") }
- AddedEdge AddedEdge { src: "dev.knotless.createComment:input.images", tgt: "dev.knotless.createComment:input.images:items", kind: "items", name: None }
- AddedEdge AddedEdge { src: "dev.knotless.createComment:input.images:items", tgt: "dev.knotless.defs#image", kind: "ref", name: None }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "dev.knotless.createComment:input.images" }AddedVertex { vertex_id: "dev.knotless.createComment:input.images:items" }AddedVertex { vertex_id: "dev.knotless.defs#image" }
Additional Notes
- Non-breaking: AddedEdge { src: "dev.knotless.createComment:input", tgt: "dev.knotless.createComment:input.images", kind: "prop", name: Some("images") }
- Non-breaking: AddedEdge { src: "dev.knotless.createComment:input.images", tgt: "dev.knotless.createComment:input.images:items", kind: "items", name: None }
- Non-breaking: AddedEdge { src: "dev.knotless.createComment:input.images:items", tgt: "dev.knotless.defs#image", kind: "ref", name: None }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"main": {
5
5
"description": "Writes a dev.knotless.comment record in the account logged in to this appview's web pages, as `knotless comment` does: with a verdict, a review of the pull's head as it is now. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account. Clients holding their own session write the record themselves.",
6
6
"errors": [
7
7
{
8
8
"description": "No such repository.",
9
9
"name": "NotFound"
10
10
},
11
11
{
12
12
"description": "No account is logged in to the pages, or its session has ended.",
13
13
"name": "AuthenticationRequired"
14
14
}
15
15
],
16
16
"input": {
17
17
"encoding": "application/json",
18
18
"schema": {
19
19
"properties": {
20
20
"body": {
21
21
"description": "What it says, in Markdown.",
22
22
"maxLength": 20000,
23
23
"type": "string"
24
24
},
25
+
"images": {
26
+
"description": "Pictures uploaded with dev.knotless.uploadImage; those the body links to are attached.",
27
+
"items": {
28
+
"ref": "dev.knotless.defs#image",
29
+
"type": "ref"
30
+
},
31
+
"maxLength": 32,
32
+
"type": "array"
33
+
},
25
34
"repo": {
26
35
"description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
27
36
"format": "at-uri",
28
37
"type": "string"
29
38
},
30
39
"subject": {
31
40
"description": "The dev.knotless.pull or dev.knotless.issue commented on.",
32
41
"format": "at-uri",
33
42
"type": "string"
34
43
},
35
44
"verdict": {
36
45
"description": "For a review of a pull: `approve`, or `changes` to ask for changes.",
37
46
"knownValues": [
38
47
"approve",
39
48
"changes"
40
49
],
41
50
"maxLength": 64,
42
51
"type": "string"
43
52
}
44
53
},
45
54
"required": [
46
55
"repo",
47
56
"subject",
48
57
"body"
49
58
],
50
59
"type": "object"
51
60
}
52
61
},
53
62
"output": {
54
63
"encoding": "application/json",
55
64
"schema": {
56
65
"properties": {
57
66
"uri": {
58
67
"description": "The dev.knotless.comment record written.",
59
68
"format": "at-uri",
60
69
"type": "string"
61
70
}
62
71
},
63
72
"required": [
64
73
"uri"
65
74
],
66
75
"type": "object"
67
76
}
68
77
},
69
78
"type": "procedure"
70
79
}
71
80
},
72
81
"description": "Comments on a pull or an issue, or reviews a pull, as the account logged in to this appview's pages.",
73
82
"id": "dev.knotless.createComment",
74
83
"lexicon": 1
75
84
}