dev.herisson.test.trust.grade
Schema Diff
+7 -2
Compatibility Analysis
Breaking Changes Detected
1 breaking change, 2 non-breaking changes.
Breaking Changes (1)
- ConstraintAdded ConstraintAdded { vertex_id: "dev.herisson.test.trust.grade:body.grade", sort: "maximum", value: "100" }
Non-Breaking Changes (2)
- AddedVertex AddedVertex { vertex_id: "dev.herisson.test.trust.grade:body.comment" }
- AddedEdge AddedEdge { src: "dev.herisson.test.trust.grade:body", tgt: "dev.herisson.test.trust.grade:body.comment", kind: "prop", name: Some("comment") }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "dev.herisson.test.trust.grade:body.comment" }
Constraint Changes
- ConstraintAdded ConstraintAdded { vertex_id: "dev.herisson.test.trust.grade:body.grade", sort: "maximum", value: "100" }
Additional Notes
- Non-breaking: AddedEdge { src: "dev.herisson.test.trust.grade:body", tgt: "dev.herisson.test.trust.grade:body.comment", kind: "prop", name: Some("comment") }
1
1
{
2
2
"id": "dev.herisson.test.trust.grade",
3
3
"defs": {
4
4
"main": {
5
-
"key": "tid",
5
+
"key": "any",
6
6
"type": "record",
7
7
"record": {
8
8
"type": "object",
9
9
"required": [
10
10
"subject",
11
11
"createdAt",
12
12
"grade"
13
13
],
14
14
"properties": {
15
15
"grade": {
16
16
"type": "integer",
17
-
"maximun": 100,
17
+
"maximum": 100,
18
18
"minimum": 0,
19
19
"description": "The reputation the account is give. 0 means no trust at all, 100 means complete trust."
20
20
},
21
+
"comment": {
22
+
"type": "string",
23
+
"maxLength": 1000,
24
+
"description": "Optional context for the trust grade."
25
+
},
21
26
"subject": {
22
27
"type": "string",
23
28
"format": "did",
24
29
"description": "The account that is being graded."
25
30
},
26
31
"createdAt": {
27
32
"type": "string",
28
33
"format": "datetime"
29
34
}
30
35
}
31
36
},
32
37
"description": "Record declaring a 'grade of trust' a user has for a given identity"
33
38
}
34
39
},
35
40
"$type": "com.atproto.lexicon.schema",
36
41
"lexicon": 1
37
42
}