wiki.lichen.noteRevision
Schema Diff
+4 -3
Compatibility Analysis
Breaking Changes Detected
1 breaking change, 0 non-breaking changes.
Breaking Changes (1)
- ConstraintTightened ConstraintTightened { vertex_id: "wiki.lichen.noteRevision:body.diffFormat", sort: "knownValues", old_value: "[\"diff-match-patch\"]", new_value: "[\"diff-match-patch\",\"full-text\"]" }
Migration Guidance
Constraint Changes
- ConstraintTightened ConstraintTightened { vertex_id: "wiki.lichen.noteRevision:body.diffFormat", sort: "knownValues", old_value: "[\"diff-match-patch\"]", new_value: "[\"diff-match-patch\",\"full-text\"]" }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"main": {
5
5
"description": "A revision to a note, stored as a diff from the previous revision.",
6
6
"key": "tid",
7
7
"record": {
8
8
"properties": {
9
9
"blobs": {
10
10
"description": "Blobs referenced by this revision's content.",
11
11
"items": {
12
12
"accept": [
13
13
"image/jpeg",
14
14
"image/png",
15
15
"image/gif",
16
16
"image/webp"
17
17
],
18
18
"maxSize": 2097152,
19
19
"type": "blob"
20
20
},
21
21
"type": "array"
22
22
},
23
23
"createdAt": {
24
24
"description": "When this revision was created.",
25
25
"format": "datetime",
26
26
"type": "string"
27
27
},
28
28
"diff": {
29
-
"description": "The diff content in the format specified by diffFormat.",
29
+
"description": "The revision payload, interpreted per diffFormat: a diff-match-patch patch against parentRevision, or with \"full-text\" the note's complete new body. \"full-text\" is only accepted when parentRevision is the note's current head.",
30
30
"maxLength": 1000000,
31
31
"type": "string"
32
32
},
33
33
"diffFormat": {
34
-
"description": "Format of the diff string.",
34
+
"description": "How to interpret diff. \"diff-match-patch\" is a patch against parentRevision; \"full-text\" is the whole note body.",
35
35
"knownValues": [
36
-
"diff-match-patch"
36
+
"diff-match-patch",
37
+
"full-text"
37
38
],
38
39
"maxLength": 32,
39
40
"type": "string"
40
41
},
41
42
"message": {
42
43
"description": "Optional commit message describing this revision.",
43
44
"maxGraphemes": 1024,
44
45
"maxLength": 10240,
45
46
"type": "string"
46
47
},
47
48
"noteRef": {
48
49
"description": "AT-URI of the parent note record.",
49
50
"format": "at-uri",
50
51
"type": "string"
51
52
},
52
53
"parentRevision": {
53
54
"description": "AT-URI of the previous revision. Omitted for the first revision of a note.",
54
55
"format": "at-uri",
55
56
"type": "string"
56
57
}
57
58
},
58
59
"required": [
59
60
"noteRef",
60
61
"diff",
61
62
"diffFormat",
62
63
"createdAt"
63
64
],
64
65
"type": "object"
65
66
},
66
67
"type": "record"
67
68
}
68
69
},
69
70
"id": "wiki.lichen.noteRevision",
70
71
"lexicon": 1
71
72
}