pub.leaflet.publication

leaflet.pub

Schema Diff

+9 -0

From

CID
bafyreidonnw6cik...
Indexed At
2026-08-05 19:14 UTC
View this version

To

CID
bafyreibyek3ltdh...
Indexed At
2026-08-05 01:27 UTC
View this version

Compatibility Analysis

Backward Compatible

Backward compatible. 4 non-breaking changes.

Non-Breaking Changes (4)
  • AddedVertex AddedVertex { vertex_id: "pub.leaflet.publication:body.recommendations" }
  • AddedVertex AddedVertex { vertex_id: "pub.leaflet.publication:body.recommendations:items" }
  • AddedEdge AddedEdge { src: "pub.leaflet.publication:body", tgt: "pub.leaflet.publication:body.recommendations", kind: "prop", name: Some("recommendations") }
  • AddedEdge AddedEdge { src: "pub.leaflet.publication:body.recommendations", tgt: "pub.leaflet.publication:body.recommendations:items", kind: "items", name: None }

Migration Guidance

Added Elements

  • AddedVertex { vertex_id: "pub.leaflet.publication:body.recommendations" }
  • AddedVertex { vertex_id: "pub.leaflet.publication:body.recommendations:items" }

Additional Notes

  • Non-breaking: AddedEdge { src: "pub.leaflet.publication:body", tgt: "pub.leaflet.publication:body.recommendations", kind: "prop", name: Some("recommendations") }
  • Non-breaking: AddedEdge { src: "pub.leaflet.publication:body.recommendations", tgt: "pub.leaflet.publication:body.recommendations:items", kind: "items", name: None }
1 1
{
2 2
  "id": "pub.leaflet.publication",
3 3
  "defs": {
4 4
    "main": {
5 5
      "key": "tid",
6 6
      "type": "record",
7 7
      "record": {
8 8
        "type": "object",
9 9
        "required": [
10 10
          "name"
11 11
        ],
12 12
        "properties": {
13 13
          "icon": {
14 14
            "type": "blob",
15 15
            "accept": [
16 16
              "image/*"
17 17
            ],
18 18
            "maxSize": 1000000
19 19
          },
20 20
          "name": {
21 21
            "type": "string",
22 22
            "maxLength": 2000
23 23
          },
24 24
          "theme": {
25 25
            "ref": "#theme",
26 26
            "type": "ref"
27 27
          },
28 28
          "base_path": {
29 29
            "type": "string"
30 30
          },
31 31
          "description": {
32 32
            "type": "string",
33 33
            "maxLength": 2000
34 34
          },
35 35
          "preferences": {
36 36
            "ref": "#preferences",
37 37
            "type": "ref"
38 +
          },
39 +
          "recommendations": {
40 +
            "type": "array",
41 +
            "items": {
42 +
              "type": "string",
43 +
              "format": "at-uri"
44 +
            },
45 +
            "maxLength": 3,
46 +
            "description": "Publications this publication recommends"
38 47
          }
39 48
        }
40 49
      },
41 50
      "description": "Record declaring a publication"
42 51
    },
43 52
    "theme": {
44 53
      "type": "object",
45 54
      "properties": {
46 55
        "primary": {
47 56
          "refs": [
48 57
            "pub.leaflet.theme.color#rgba",
49 58
            "pub.leaflet.theme.color#rgb"
50 59
          ],
51 60
          "type": "union"
52 61
        },
53 62
        "bodyFont": {
54 63
          "type": "string",
55 64
          "maxLength": 100
56 65
        },
57 66
        "wordmark": {
58 67
          "ref": "pub.leaflet.theme.wordmark",
59 68
          "type": "ref"
60 69
        },
61 70
        "pageWidth": {
62 71
          "type": "integer",
63 72
          "maximum": 1600,
64 73
          "minimum": 0
65 74
        },
66 75
        "accentText": {
67 76
          "refs": [
68 77
            "pub.leaflet.theme.color#rgba",
69 78
            "pub.leaflet.theme.color#rgb"
70 79
          ],
71 80
          "type": "union"
72 81
        },
73 82
        "headingFont": {
74 83
          "type": "string",
75 84
          "maxLength": 100
76 85
        },
77 86
        "pageBackground": {
78 87
          "refs": [
79 88
            "pub.leaflet.theme.color#rgba",
80 89
            "pub.leaflet.theme.color#rgb"
81 90
          ],
82 91
          "type": "union"
83 92
        },
84 93
        "backgroundColor": {
85 94
          "refs": [
86 95
            "pub.leaflet.theme.color#rgba",
87 96
            "pub.leaflet.theme.color#rgb"
88 97
          ],
89 98
          "type": "union"
90 99
        },
91 100
        "backgroundImage": {
92 101
          "ref": "pub.leaflet.theme.backgroundImage",
93 102
          "type": "ref"
94 103
        },
95 104
        "accentBackground": {
96 105
          "refs": [
97 106
            "pub.leaflet.theme.color#rgba",
98 107
            "pub.leaflet.theme.color#rgb"
99 108
          ],
100 109
          "type": "union"
101 110
        },
102 111
        "showPageBackground": {
103 112
          "type": "boolean",
104 113
          "default": false
105 114
        }
106 115
      }
107 116
    },
108 117
    "preferences": {
109 118
      "type": "object",
110 119
      "properties": {
111 120
        "showComments": {
112 121
          "type": "boolean",
113 122
          "default": true
114 123
        },
115 124
        "showMentions": {
116 125
          "type": "boolean",
117 126
          "default": true
118 127
        },
119 128
        "showPrevNext": {
120 129
          "type": "boolean",
121 130
          "default": true
122 131
        },
123 132
        "showFirstLast": {
124 133
          "type": "boolean",
125 134
          "default": false
126 135
        },
127 136
        "showInDiscover": {
128 137
          "type": "boolean",
129 138
          "default": true
130 139
        },
131 140
        "showRecommends": {
132 141
          "type": "boolean",
133 142
          "default": true
134 143
        },
135 144
        "prevNextDirection": {
136 145
          "type": "string",
137 146
          "default": "rtl",
138 147
          "knownValues": [
139 148
            "ltr",
140 149
            "rtl"
141 150
          ]
142 151
        }
143 152
      }
144 153
    }
145 154
  },
146 155
  "$type": "com.atproto.lexicon.schema",
147 156
  "lexicon": 1
148 157
}

Compare Other Versions

Lexicon Garden

@