dev.knotless.editItem
Schema Diff
+14 -1
Compatibility Analysis
Backward Compatible
Backward compatible. 8 non-breaking changes.
Non-Breaking Changes (8)
- AddedVertex AddedVertex { vertex_id: "dev.knotless.defs#image" }
- AddedVertex AddedVertex { vertex_id: "dev.knotless.editItem:input.draft" }
- AddedVertex AddedVertex { vertex_id: "dev.knotless.editItem:input.images" }
- AddedVertex AddedVertex { vertex_id: "dev.knotless.editItem:input.images:items" }
- AddedEdge AddedEdge { src: "dev.knotless.editItem:input", tgt: "dev.knotless.editItem:input.draft", kind: "prop", name: Some("draft") }
- AddedEdge AddedEdge { src: "dev.knotless.editItem:input", tgt: "dev.knotless.editItem:input.images", kind: "prop", name: Some("images") }
- AddedEdge AddedEdge { src: "dev.knotless.editItem:input.images", tgt: "dev.knotless.editItem:input.images:items", kind: "items", name: None }
- AddedEdge AddedEdge { src: "dev.knotless.editItem:input.images:items", tgt: "dev.knotless.defs#image", kind: "ref", name: None }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "dev.knotless.defs#image" }AddedVertex { vertex_id: "dev.knotless.editItem:input.draft" }AddedVertex { vertex_id: "dev.knotless.editItem:input.images" }AddedVertex { vertex_id: "dev.knotless.editItem:input.images:items" }
Additional Notes
- Non-breaking: AddedEdge { src: "dev.knotless.editItem:input", tgt: "dev.knotless.editItem:input.draft", kind: "prop", name: Some("draft") }
- Non-breaking: AddedEdge { src: "dev.knotless.editItem:input", tgt: "dev.knotless.editItem:input.images", kind: "prop", name: Some("images") }
- Non-breaking: AddedEdge { src: "dev.knotless.editItem:input.images", tgt: "dev.knotless.editItem:input.images:items", kind: "items", name: None }
- Non-breaking: AddedEdge { src: "dev.knotless.editItem: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
-
"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
+
},
29
+
"images": {
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.",
31
+
"items": {
32
+
"ref": "dev.knotless.defs#image",
33
+
"type": "ref"
34
+
},
35
+
"maxLength": 32,
36
+
"type": "array"
37
+
},
25
38
"repo": {
26
39
"description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
27
40
"format": "at-uri",
28
41
"type": "string"
29
42
},
30
43
"subject": {
31
44
"description": "The pull, issue or comment to change.",
32
45
"format": "at-uri",
33
46
"type": "string"
34
47
},
35
48
"title": {
36
49
"description": "A pull's or an issue's new title.",
37
50
"maxGraphemes": 300,
38
51
"maxLength": 3000,
39
52
"type": "string"
40
53
}
41
54
},
42
55
"required": [
43
56
"repo",
44
57
"subject"
45
58
],
46
59
"type": "object"
47
60
}
48
61
},
49
62
"output": {
50
63
"encoding": "application/json",
51
64
"schema": {
52
65
"properties": {
53
66
"uri": {
54
67
"description": "The record changed.",
55
68
"format": "at-uri",
56
69
"type": "string"
57
70
}
58
71
},
59
72
"required": [
60
73
"uri"
61
74
],
62
75
"type": "object"
63
76
}
64
77
},
65
78
"type": "procedure"
66
79
}
67
80
},
68
81
"description": "Changes what a pull, an issue or a comment says, as its author, logged in to this appview's pages.",
69
82
"id": "dev.knotless.editItem",
70
83
"lexicon": 1
71
84
}