dev.knotless.editItem
Schema Diff
+9 -0
Compatibility Analysis
Backward Compatible
Backward compatible. 6 non-breaking changes.
Non-Breaking Changes (6)
- AddedVertex AddedVertex { vertex_id: "dev.knotless.defs#image" }
- 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.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.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.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
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.",
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
+
"images": {
26
+
"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
+
"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 pull, issue or comment to change.",
32
41
"format": "at-uri",
33
42
"type": "string"
34
43
},
35
44
"title": {
36
45
"description": "A pull's or an issue's new title.",
37
46
"maxGraphemes": 300,
38
47
"maxLength": 3000,
39
48
"type": "string"
40
49
}
41
50
},
42
51
"required": [
43
52
"repo",
44
53
"subject"
45
54
],
46
55
"type": "object"
47
56
}
48
57
},
49
58
"output": {
50
59
"encoding": "application/json",
51
60
"schema": {
52
61
"properties": {
53
62
"uri": {
54
63
"description": "The record changed.",
55
64
"format": "at-uri",
56
65
"type": "string"
57
66
}
58
67
},
59
68
"required": [
60
69
"uri"
61
70
],
62
71
"type": "object"
63
72
}
64
73
},
65
74
"type": "procedure"
66
75
}
67
76
},
68
77
"description": "Changes what a pull, an issue or a comment says, as its author, logged in to this appview's pages.",
69
78
"id": "dev.knotless.editItem",
70
79
"lexicon": 1
71
80
}