dev.knotless.editItem
Schema Diff
+5 -1
Compatibility Analysis
Backward Compatible
Backward compatible. 2 non-breaking changes.
Non-Breaking Changes (2)
- AddedVertex AddedVertex { vertex_id: "dev.knotless.editItem:input.draft" }
- AddedEdge AddedEdge { src: "dev.knotless.editItem:input", tgt: "dev.knotless.editItem:input.draft", kind: "prop", name: Some("draft") }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "dev.knotless.editItem:input.draft" }
Additional Notes
- Non-breaking: AddedEdge { src: "dev.knotless.editItem:input", tgt: "dev.knotless.editItem:input.draft", kind: "prop", name: Some("draft") }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"main": {
5
-
"description": "Rewrites a dev.knotless.pull, dev.knotless.issue or dev.knotless.comment record in the account logged in to this appview's web pages, which must have written it, as `knotless edit` does: a pull's or an issue's title or body, or a comment's body. An empty body takes a pull's or an issue's away; a comment keeps one. Requires the session cookie the pages' login sets.",
5
+
"description": "Rewrites a dev.knotless.pull, dev.knotless.issue or dev.knotless.comment record in the account logged in to this appview's web pages, which must have written it, as `knotless edit` does: a pull's or an issue's title or body, or a comment's body, and whether a pull is a draft. An empty body takes a pull's or an issue's away; a comment keeps one. Requires the session cookie the pages' login sets.",
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": "Its new body, in Markdown.",
22
22
"maxLength": 20000,
23
23
"type": "string"
24
24
},
25
+
"draft": {
26
+
"description": "For a pull, make it a draft, or with false mark it ready to merge. Left as it is, when absent; any other item refuses it.",
27
+
"type": "boolean"
28
+
},
25
29
"images": {
26
30
"description": "Pictures uploaded with dev.knotless.uploadImage for the new body. Of these and those it had, the new body's links decide which stay attached.",
27
31
"items": {
28
32
"ref": "dev.knotless.defs#image",
29
33
"type": "ref"
30
34
},
31
35
"maxLength": 32,
32
36
"type": "array"
33
37
},
34
38
"repo": {
35
39
"description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
36
40
"format": "at-uri",
37
41
"type": "string"
38
42
},
39
43
"subject": {
40
44
"description": "The pull, issue or comment to change.",
41
45
"format": "at-uri",
42
46
"type": "string"
43
47
},
44
48
"title": {
45
49
"description": "A pull's or an issue's new title.",
46
50
"maxGraphemes": 300,
47
51
"maxLength": 3000,
48
52
"type": "string"
49
53
}
50
54
},
51
55
"required": [
52
56
"repo",
53
57
"subject"
54
58
],
55
59
"type": "object"
56
60
}
57
61
},
58
62
"output": {
59
63
"encoding": "application/json",
60
64
"schema": {
61
65
"properties": {
62
66
"uri": {
63
67
"description": "The record changed.",
64
68
"format": "at-uri",
65
69
"type": "string"
66
70
}
67
71
},
68
72
"required": [
69
73
"uri"
70
74
],
71
75
"type": "object"
72
76
}
73
77
},
74
78
"type": "procedure"
75
79
}
76
80
},
77
81
"description": "Changes what a pull, an issue or a comment says, as its author, logged in to this appview's pages.",
78
82
"id": "dev.knotless.editItem",
79
83
"lexicon": 1
80
84
}