com.atiproto.cart
Schema Diff
+4 -4
Compatibility Analysis
Breaking Changes Detected
1 breaking change, 0 non-breaking changes.
Breaking Changes (1)
- ConstraintTightened ConstraintTightened { vertex_id: "com.atiproto.cart#cartItem.type", sort: "enum", old_value: "com.atiproto.tip,com.atiproto.subscription", new_value: "com.atiproto.item,com.atiproto.subscription" }
Migration Guidance
Constraint Changes
- ConstraintTightened ConstraintTightened { vertex_id: "com.atiproto.cart#cartItem.type", sort: "enum", old_value: "com.atiproto.tip,com.atiproto.subscription", new_value: "com.atiproto.item,com.atiproto.subscription" }
1
1
{
2
2
"id": "com.atiproto.cart",
3
3
"defs": {
4
4
"main": {
5
5
"key": "any",
6
6
"type": "record",
7
7
"record": {
8
8
"type": "object",
9
9
"required": [
10
10
"items",
11
11
"currency",
12
12
"total",
13
13
"status",
14
14
"createdAt",
15
15
"expiresAt"
16
16
],
17
17
"properties": {
18
18
"items": {
19
19
"type": "array",
20
20
"items": {
21
21
"ref": "#cartItem",
22
22
"type": "ref"
23
23
}
24
24
},
25
25
"total": {
26
26
"type": "integer",
27
27
"description": "Total amount in cents"
28
28
},
29
29
"status": {
30
30
"enum": [
31
31
"open",
32
32
"completed",
33
33
"expired",
34
34
"abandoned"
35
35
],
36
36
"type": "string",
37
37
"maxLength": 64,
38
38
"description": "Cart status"
39
39
},
40
40
"currency": {
41
41
"type": "string",
42
42
"maxLength": 3,
43
43
"description": "ISO 4217 currency code"
44
44
},
45
45
"createdAt": {
46
46
"type": "string",
47
47
"format": "datetime",
48
48
"description": "Creation timestamp"
49
49
},
50
50
"expiresAt": {
51
51
"type": "string",
52
52
"format": "datetime",
53
53
"description": "Expiration timestamp"
54
54
},
55
55
"completedAt": {
56
56
"type": "string",
57
57
"format": "datetime",
58
58
"description": "Completion timestamp"
59
59
}
60
60
}
61
61
},
62
-
"description": "A record representing a shopping cart for tips/subscriptions"
62
+
"description": "A record representing a shopping cart for items/subscriptions"
63
63
},
64
64
"view": {
65
65
"type": "object",
66
66
"required": [
67
67
"uri",
68
68
"items",
69
69
"currency",
70
70
"total",
71
71
"status",
72
72
"createdAt",
73
73
"expiresAt"
74
74
],
75
75
"properties": {
76
76
"uri": {
77
77
"type": "string",
78
78
"format": "at-uri",
79
79
"description": "AT-URI of the cart record"
80
80
},
81
81
"items": {
82
82
"type": "array",
83
83
"items": {
84
84
"ref": "#cartItem",
85
85
"type": "ref"
86
86
}
87
87
},
88
88
"total": {
89
89
"type": "integer",
90
90
"description": "Total amount in cents"
91
91
},
92
92
"status": {
93
93
"enum": [
94
94
"open",
95
95
"completed",
96
96
"expired",
97
97
"abandoned"
98
98
],
99
99
"type": "string",
100
100
"maxLength": 64,
101
101
"description": "Cart status"
102
102
},
103
103
"currency": {
104
104
"type": "string",
105
105
"maxLength": 3,
106
106
"description": "ISO 4217 currency code"
107
107
},
108
108
"createdAt": {
109
109
"type": "string",
110
110
"format": "datetime",
111
111
"description": "Creation timestamp"
112
112
},
113
113
"expiresAt": {
114
114
"type": "string",
115
115
"format": "datetime",
116
116
"description": "Expiration timestamp"
117
117
},
118
118
"completedAt": {
119
119
"type": "string",
120
120
"format": "datetime",
121
121
"description": "Completion timestamp"
122
122
}
123
123
},
124
124
"description": "View of a cart record for use in API responses"
125
125
},
126
126
"cartItem": {
127
127
"type": "object",
128
128
"required": [
129
129
"type",
130
130
"recordUri"
131
131
],
132
132
"properties": {
133
133
"type": {
134
134
"enum": [
135
-
"com.atiproto.tip",
135
+
"com.atiproto.item",
136
136
"com.atiproto.subscription"
137
137
],
138
138
"type": "string",
139
139
"maxLength": 128,
140
-
"description": "Item type: tip or subscription"
140
+
"description": "Type of cart item: item or subscription"
141
141
},
142
142
"recordUri": {
143
143
"type": "string",
144
144
"format": "at-uri",
145
-
"description": "AT-URI for tip on record"
145
+
"description": "AT-URI for item on record"
146
146
}
147
147
}
148
148
}
149
149
},
150
150
"$type": "com.atproto.lexicon.schema",
151
151
"lexicon": 1
152
152
}