···3737 }
38383939 // t.Cid (string) (string)
4040- if len("cid") > cbg.MaxLength {
4040+ if uint64(len("cid")) > cbg.MaxLength {
4141 return xerrors.Errorf("Value in field \"cid\" was too long")
4242 }
4343···4848 return err
4949 }
50505151- if len(t.Cid) > cbg.MaxLength {
5151+ if uint64(len(t.Cid)) > cbg.MaxLength {
5252 return xerrors.Errorf("Value in field t.Cid was too long")
5353 }
5454···6060 }
61616262 // t.Uri (string) (string)
6363- if len("uri") > cbg.MaxLength {
6363+ if uint64(len("uri")) > cbg.MaxLength {
6464 return xerrors.Errorf("Value in field \"uri\" was too long")
6565 }
6666···7171 return err
7272 }
73737474- if len(t.Uri) > cbg.MaxLength {
7474+ if uint64(len(t.Uri)) > cbg.MaxLength {
7575 return xerrors.Errorf("Value in field t.Uri was too long")
7676 }
7777···8585 // t.LexiconTypeID (string) (string)
8686 if t.LexiconTypeID != "" {
87878888- if len("$type") > cbg.MaxLength {
8888+ if uint64(len("$type")) > cbg.MaxLength {
8989 return xerrors.Errorf("Value in field \"$type\" was too long")
9090 }
9191···204204 }
205205206206 // t.Ops ([]*atproto.SyncSubscribeRepos_RepoOp) (slice)
207207- if len("ops") > cbg.MaxLength {
207207+ if uint64(len("ops")) > cbg.MaxLength {
208208 return xerrors.Errorf("Value in field \"ops\" was too long")
209209 }
210210···215215 return err
216216 }
217217218218- if len(t.Ops) > cbg.MaxLength {
218218+ if uint64(len(t.Ops)) > cbg.MaxLength {
219219 return xerrors.Errorf("Slice value in field t.Ops was too long")
220220 }
221221···230230 }
231231232232 // t.Rev (string) (string)
233233- if len("rev") > cbg.MaxLength {
233233+ if uint64(len("rev")) > cbg.MaxLength {
234234 return xerrors.Errorf("Value in field \"rev\" was too long")
235235 }
236236···241241 return err
242242 }
243243244244- if len(t.Rev) > cbg.MaxLength {
244244+ if uint64(len(t.Rev)) > cbg.MaxLength {
245245 return xerrors.Errorf("Value in field t.Rev was too long")
246246 }
247247···253253 }
254254255255 // t.Seq (int64) (int64)
256256- if len("seq") > cbg.MaxLength {
256256+ if uint64(len("seq")) > cbg.MaxLength {
257257 return xerrors.Errorf("Value in field \"seq\" was too long")
258258 }
259259···275275 }
276276277277 // t.Prev (util.LexLink) (struct)
278278- if len("prev") > cbg.MaxLength {
278278+ if uint64(len("prev")) > cbg.MaxLength {
279279 return xerrors.Errorf("Value in field \"prev\" was too long")
280280 }
281281···291291 }
292292293293 // t.Repo (string) (string)
294294- if len("repo") > cbg.MaxLength {
294294+ if uint64(len("repo")) > cbg.MaxLength {
295295 return xerrors.Errorf("Value in field \"repo\" was too long")
296296 }
297297···302302 return err
303303 }
304304305305- if len(t.Repo) > cbg.MaxLength {
305305+ if uint64(len(t.Repo)) > cbg.MaxLength {
306306 return xerrors.Errorf("Value in field t.Repo was too long")
307307 }
308308···314314 }
315315316316 // t.Time (string) (string)
317317- if len("time") > cbg.MaxLength {
317317+ if uint64(len("time")) > cbg.MaxLength {
318318 return xerrors.Errorf("Value in field \"time\" was too long")
319319 }
320320···325325 return err
326326 }
327327328328- if len(t.Time) > cbg.MaxLength {
328328+ if uint64(len(t.Time)) > cbg.MaxLength {
329329 return xerrors.Errorf("Value in field t.Time was too long")
330330 }
331331···337337 }
338338339339 // t.Blobs ([]util.LexLink) (slice)
340340- if len("blobs") > cbg.MaxLength {
340340+ if uint64(len("blobs")) > cbg.MaxLength {
341341 return xerrors.Errorf("Value in field \"blobs\" was too long")
342342 }
343343···348348 return err
349349 }
350350351351- if len(t.Blobs) > cbg.MaxLength {
351351+ if uint64(len(t.Blobs)) > cbg.MaxLength {
352352 return xerrors.Errorf("Slice value in field t.Blobs was too long")
353353 }
354354···363363 }
364364365365 // t.Since (string) (string)
366366- if len("since") > cbg.MaxLength {
366366+ if uint64(len("since")) > cbg.MaxLength {
367367 return xerrors.Errorf("Value in field \"since\" was too long")
368368 }
369369···379379 return err
380380 }
381381 } else {
382382- if len(*t.Since) > cbg.MaxLength {
382382+ if uint64(len(*t.Since)) > cbg.MaxLength {
383383 return xerrors.Errorf("Value in field t.Since was too long")
384384 }
385385···394394 // t.Blocks (util.LexBytes) (slice)
395395 if t.Blocks != nil {
396396397397- if len("blocks") > cbg.MaxLength {
397397+ if uint64(len("blocks")) > cbg.MaxLength {
398398 return xerrors.Errorf("Value in field \"blocks\" was too long")
399399 }
400400···405405 return err
406406 }
407407408408- if len(t.Blocks) > cbg.ByteArrayMaxLen {
408408+ if uint64(len(t.Blocks)) > cbg.ByteArrayMaxLen {
409409 return xerrors.Errorf("Byte array in field t.Blocks was too long")
410410 }
411411···413413 return err
414414 }
415415416416- if _, err := cw.Write(t.Blocks[:]); err != nil {
416416+ if _, err := cw.Write(t.Blocks); err != nil {
417417 return err
418418 }
419419420420 }
421421422422 // t.Commit (util.LexLink) (struct)
423423- if len("commit") > cbg.MaxLength {
423423+ if uint64(len("commit")) > cbg.MaxLength {
424424 return xerrors.Errorf("Value in field \"commit\" was too long")
425425 }
426426···436436 }
437437438438 // t.Rebase (bool) (bool)
439439- if len("rebase") > cbg.MaxLength {
439439+ if uint64(len("rebase")) > cbg.MaxLength {
440440 return xerrors.Errorf("Value in field \"rebase\" was too long")
441441 }
442442···452452 }
453453454454 // t.TooBig (bool) (bool)
455455- if len("tooBig") > cbg.MaxLength {
455455+ if uint64(len("tooBig")) > cbg.MaxLength {
456456 return xerrors.Errorf("Value in field \"tooBig\" was too long")
457457 }
458458···714714 t.Blocks = make([]uint8, extra)
715715 }
716716717717- if _, err := io.ReadFull(cr, t.Blocks[:]); err != nil {
717717+ if _, err := io.ReadFull(cr, t.Blocks); err != nil {
718718 return err
719719 }
720720···786786 }
787787788788 // t.Did (string) (string)
789789- if len("did") > cbg.MaxLength {
789789+ if uint64(len("did")) > cbg.MaxLength {
790790 return xerrors.Errorf("Value in field \"did\" was too long")
791791 }
792792···797797 return err
798798 }
799799800800- if len(t.Did) > cbg.MaxLength {
800800+ if uint64(len(t.Did)) > cbg.MaxLength {
801801 return xerrors.Errorf("Value in field t.Did was too long")
802802 }
803803···809809 }
810810811811 // t.Seq (int64) (int64)
812812- if len("seq") > cbg.MaxLength {
812812+ if uint64(len("seq")) > cbg.MaxLength {
813813 return xerrors.Errorf("Value in field \"seq\" was too long")
814814 }
815815···831831 }
832832833833 // t.Time (string) (string)
834834- if len("time") > cbg.MaxLength {
834834+ if uint64(len("time")) > cbg.MaxLength {
835835 return xerrors.Errorf("Value in field \"time\" was too long")
836836 }
837837···842842 return err
843843 }
844844845845- if len(t.Time) > cbg.MaxLength {
845845+ if uint64(len(t.Time)) > cbg.MaxLength {
846846 return xerrors.Errorf("Value in field t.Time was too long")
847847 }
848848···854854 }
855855856856 // t.Handle (string) (string)
857857- if len("handle") > cbg.MaxLength {
857857+ if uint64(len("handle")) > cbg.MaxLength {
858858 return xerrors.Errorf("Value in field \"handle\" was too long")
859859 }
860860···865865 return err
866866 }
867867868868- if len(t.Handle) > cbg.MaxLength {
868868+ if uint64(len(t.Handle)) > cbg.MaxLength {
869869 return xerrors.Errorf("Value in field t.Handle was too long")
870870 }
871871···10021002 }
1003100310041004 // t.Name (string) (string)
10051005- if len("name") > cbg.MaxLength {
10051005+ if uint64(len("name")) > cbg.MaxLength {
10061006 return xerrors.Errorf("Value in field \"name\" was too long")
10071007 }
10081008···10131013 return err
10141014 }
1015101510161016- if len(t.Name) > cbg.MaxLength {
10161016+ if uint64(len(t.Name)) > cbg.MaxLength {
10171017 return xerrors.Errorf("Value in field t.Name was too long")
10181018 }
10191019···10271027 // t.Message (string) (string)
10281028 if t.Message != nil {
1029102910301030- if len("message") > cbg.MaxLength {
10301030+ if uint64(len("message")) > cbg.MaxLength {
10311031 return xerrors.Errorf("Value in field \"message\" was too long")
10321032 }
10331033···10431043 return err
10441044 }
10451045 } else {
10461046- if len(*t.Message) > cbg.MaxLength {
10461046+ if uint64(len(*t.Message)) > cbg.MaxLength {
10471047 return xerrors.Errorf("Value in field t.Message was too long")
10481048 }
10491049···11501150 }
1151115111521152 // t.Did (string) (string)
11531153- if len("did") > cbg.MaxLength {
11531153+ if uint64(len("did")) > cbg.MaxLength {
11541154 return xerrors.Errorf("Value in field \"did\" was too long")
11551155 }
11561156···11611161 return err
11621162 }
1163116311641164- if len(t.Did) > cbg.MaxLength {
11641164+ if uint64(len(t.Did)) > cbg.MaxLength {
11651165 return xerrors.Errorf("Value in field t.Did was too long")
11661166 }
11671167···11731173 }
1174117411751175 // t.Seq (int64) (int64)
11761176- if len("seq") > cbg.MaxLength {
11761176+ if uint64(len("seq")) > cbg.MaxLength {
11771177 return xerrors.Errorf("Value in field \"seq\" was too long")
11781178 }
11791179···11951195 }
1196119611971197 // t.Time (string) (string)
11981198- if len("time") > cbg.MaxLength {
11981198+ if uint64(len("time")) > cbg.MaxLength {
11991199 return xerrors.Errorf("Value in field \"time\" was too long")
12001200 }
12011201···12061206 return err
12071207 }
1208120812091209- if len(t.Time) > cbg.MaxLength {
12091209+ if uint64(len(t.Time)) > cbg.MaxLength {
12101210 return xerrors.Errorf("Value in field t.Time was too long")
12111211 }
12121212···12181218 }
1219121912201220 // t.MigrateTo (string) (string)
12211221- if len("migrateTo") > cbg.MaxLength {
12211221+ if uint64(len("migrateTo")) > cbg.MaxLength {
12221222 return xerrors.Errorf("Value in field \"migrateTo\" was too long")
12231223 }
12241224···12341234 return err
12351235 }
12361236 } else {
12371237- if len(*t.MigrateTo) > cbg.MaxLength {
12371237+ if uint64(len(*t.MigrateTo)) > cbg.MaxLength {
12381238 return xerrors.Errorf("Value in field t.MigrateTo was too long")
12391239 }
12401240···13771377 }
1378137813791379 // t.Cid (util.LexLink) (struct)
13801380- if len("cid") > cbg.MaxLength {
13801380+ if uint64(len("cid")) > cbg.MaxLength {
13811381 return xerrors.Errorf("Value in field \"cid\" was too long")
13821382 }
13831383···13931393 }
1394139413951395 // t.Path (string) (string)
13961396- if len("path") > cbg.MaxLength {
13961396+ if uint64(len("path")) > cbg.MaxLength {
13971397 return xerrors.Errorf("Value in field \"path\" was too long")
13981398 }
13991399···14041404 return err
14051405 }
1406140614071407- if len(t.Path) > cbg.MaxLength {
14071407+ if uint64(len(t.Path)) > cbg.MaxLength {
14081408 return xerrors.Errorf("Value in field t.Path was too long")
14091409 }
14101410···14161416 }
1417141714181418 // t.Action (string) (string)
14191419- if len("action") > cbg.MaxLength {
14191419+ if uint64(len("action")) > cbg.MaxLength {
14201420 return xerrors.Errorf("Value in field \"action\" was too long")
14211421 }
14221422···14271427 return err
14281428 }
1429142914301430- if len(t.Action) > cbg.MaxLength {
14301430+ if uint64(len(t.Action)) > cbg.MaxLength {
14311431 return xerrors.Errorf("Value in field t.Action was too long")
14321432 }
14331433···15421542 }
1543154315441544 // t.Did (string) (string)
15451545- if len("did") > cbg.MaxLength {
15451545+ if uint64(len("did")) > cbg.MaxLength {
15461546 return xerrors.Errorf("Value in field \"did\" was too long")
15471547 }
15481548···15531553 return err
15541554 }
1555155515561556- if len(t.Did) > cbg.MaxLength {
15561556+ if uint64(len(t.Did)) > cbg.MaxLength {
15571557 return xerrors.Errorf("Value in field t.Did was too long")
15581558 }
15591559···15651565 }
1566156615671567 // t.Seq (int64) (int64)
15681568- if len("seq") > cbg.MaxLength {
15681568+ if uint64(len("seq")) > cbg.MaxLength {
15691569 return xerrors.Errorf("Value in field \"seq\" was too long")
15701570 }
15711571···15871587 }
1588158815891589 // t.Time (string) (string)
15901590- if len("time") > cbg.MaxLength {
15901590+ if uint64(len("time")) > cbg.MaxLength {
15911591 return xerrors.Errorf("Value in field \"time\" was too long")
15921592 }
15931593···15981598 return err
15991599 }
1600160016011601- if len(t.Time) > cbg.MaxLength {
16011601+ if uint64(len(t.Time)) > cbg.MaxLength {
16021602 return xerrors.Errorf("Value in field t.Time was too long")
16031603 }
16041604···17191719 }
1720172017211721 // t.LexiconTypeID (string) (string)
17221722- if len("$type") > cbg.MaxLength {
17221722+ if uint64(len("$type")) > cbg.MaxLength {
17231723 return xerrors.Errorf("Value in field \"$type\" was too long")
17241724 }
17251725···17381738 }
1739173917401740 // t.Values ([]*atproto.LabelDefs_SelfLabel) (slice)
17411741- if len("values") > cbg.MaxLength {
17411741+ if uint64(len("values")) > cbg.MaxLength {
17421742 return xerrors.Errorf("Value in field \"values\" was too long")
17431743 }
17441744···17491749 return err
17501750 }
1751175117521752- if len(t.Values) > cbg.MaxLength {
17521752+ if uint64(len(t.Values)) > cbg.MaxLength {
17531753 return xerrors.Errorf("Slice value in field t.Values was too long")
17541754 }
17551755···19051905 }
1906190619071907 // t.Val (string) (string)
19081908- if len("val") > cbg.MaxLength {
19081908+ if uint64(len("val")) > cbg.MaxLength {
19091909 return xerrors.Errorf("Value in field \"val\" was too long")
19101910 }
19111911···19161916 return err
19171917 }
1918191819191919- if len(t.Val) > cbg.MaxLength {
19191919+ if uint64(len(t.Val)) > cbg.MaxLength {
19201920 return xerrors.Errorf("Value in field t.Val was too long")
19211921 }
19221922···20112011 // t.Cid (string) (string)
20122012 if t.Cid != nil {
2013201320142014- if len("cid") > cbg.MaxLength {
20142014+ if uint64(len("cid")) > cbg.MaxLength {
20152015 return xerrors.Errorf("Value in field \"cid\" was too long")
20162016 }
20172017···20272027 return err
20282028 }
20292029 } else {
20302030- if len(*t.Cid) > cbg.MaxLength {
20302030+ if uint64(len(*t.Cid)) > cbg.MaxLength {
20312031 return xerrors.Errorf("Value in field t.Cid was too long")
20322032 }
20332033···20412041 }
2042204220432043 // t.Cts (string) (string)
20442044- if len("cts") > cbg.MaxLength {
20442044+ if uint64(len("cts")) > cbg.MaxLength {
20452045 return xerrors.Errorf("Value in field \"cts\" was too long")
20462046 }
20472047···20522052 return err
20532053 }
2054205420552055- if len(t.Cts) > cbg.MaxLength {
20552055+ if uint64(len(t.Cts)) > cbg.MaxLength {
20562056 return xerrors.Errorf("Value in field t.Cts was too long")
20572057 }
20582058···20662066 // t.Neg (bool) (bool)
20672067 if t.Neg != nil {
2068206820692069- if len("neg") > cbg.MaxLength {
20692069+ if uint64(len("neg")) > cbg.MaxLength {
20702070 return xerrors.Errorf("Value in field \"neg\" was too long")
20712071 }
20722072···20892089 }
2090209020912091 // t.Src (string) (string)
20922092- if len("src") > cbg.MaxLength {
20922092+ if uint64(len("src")) > cbg.MaxLength {
20932093 return xerrors.Errorf("Value in field \"src\" was too long")
20942094 }
20952095···21002100 return err
21012101 }
2102210221032103- if len(t.Src) > cbg.MaxLength {
21032103+ if uint64(len(t.Src)) > cbg.MaxLength {
21042104 return xerrors.Errorf("Value in field t.Src was too long")
21052105 }
21062106···21122112 }
2113211321142114 // t.Uri (string) (string)
21152115- if len("uri") > cbg.MaxLength {
21152115+ if uint64(len("uri")) > cbg.MaxLength {
21162116 return xerrors.Errorf("Value in field \"uri\" was too long")
21172117 }
21182118···21232123 return err
21242124 }
2125212521262126- if len(t.Uri) > cbg.MaxLength {
21262126+ if uint64(len(t.Uri)) > cbg.MaxLength {
21272127 return xerrors.Errorf("Value in field t.Uri was too long")
21282128 }
21292129···21352135 }
2136213621372137 // t.Val (string) (string)
21382138- if len("val") > cbg.MaxLength {
21382138+ if uint64(len("val")) > cbg.MaxLength {
21392139 return xerrors.Errorf("Value in field \"val\" was too long")
21402140 }
21412141···21462146 return err
21472147 }
2148214821492149- if len(t.Val) > cbg.MaxLength {
21492149+ if uint64(len(t.Val)) > cbg.MaxLength {
21502150 return xerrors.Errorf("Value in field t.Val was too long")
21512151 }
21522152···23172317 }
2318231823192319 // t.Seq (int64) (int64)
23202320- if len("seq") > cbg.MaxLength {
23202320+ if uint64(len("seq")) > cbg.MaxLength {
23212321 return xerrors.Errorf("Value in field \"seq\" was too long")
23222322 }
23232323···23392339 }
2340234023412341 // t.Labels ([]*atproto.LabelDefs_Label) (slice)
23422342- if len("labels") > cbg.MaxLength {
23422342+ if uint64(len("labels")) > cbg.MaxLength {
23432343 return xerrors.Errorf("Value in field \"labels\" was too long")
23442344 }
23452345···23502350 return err
23512351 }
2352235223532353- if len(t.Labels) > cbg.MaxLength {
23532353+ if uint64(len(t.Labels)) > cbg.MaxLength {
23542354 return xerrors.Errorf("Slice value in field t.Labels was too long")
23552355 }
23562356···25062506 }
2507250725082508 // t.Name (string) (string)
25092509- if len("name") > cbg.MaxLength {
25092509+ if uint64(len("name")) > cbg.MaxLength {
25102510 return xerrors.Errorf("Value in field \"name\" was too long")
25112511 }
25122512···25172517 return err
25182518 }
2519251925202520- if len(t.Name) > cbg.MaxLength {
25202520+ if uint64(len(t.Name)) > cbg.MaxLength {
25212521 return xerrors.Errorf("Value in field t.Name was too long")
25222522 }
25232523···25312531 // t.Message (string) (string)
25322532 if t.Message != nil {
2533253325342534- if len("message") > cbg.MaxLength {
25342534+ if uint64(len("message")) > cbg.MaxLength {
25352535 return xerrors.Errorf("Value in field \"message\" was too long")
25362536 }
25372537···25472547 return err
25482548 }
25492549 } else {
25502550- if len(*t.Message) > cbg.MaxLength {
25502550+ if uint64(len(*t.Message)) > cbg.MaxLength {
25512551 return xerrors.Errorf("Value in field t.Message was too long")
25522552 }
25532553
+144-144
api/bsky/cbor_gen.go
···6464 // t.Tags ([]string) (slice)
6565 if t.Tags != nil {
66666767- if len("tags") > cbg.MaxLength {
6767+ if uint64(len("tags")) > cbg.MaxLength {
6868 return xerrors.Errorf("Value in field \"tags\" was too long")
6969 }
7070···7575 return err
7676 }
77777878- if len(t.Tags) > cbg.MaxLength {
7878+ if uint64(len(t.Tags)) > cbg.MaxLength {
7979 return xerrors.Errorf("Slice value in field t.Tags was too long")
8080 }
8181···8383 return err
8484 }
8585 for _, v := range t.Tags {
8686- if len(v) > cbg.MaxLength {
8686+ if uint64(len(v)) > cbg.MaxLength {
8787 return xerrors.Errorf("Value in field v was too long")
8888 }
8989···9898 }
9999100100 // t.Text (string) (string)
101101- if len("text") > cbg.MaxLength {
101101+ if uint64(len("text")) > cbg.MaxLength {
102102 return xerrors.Errorf("Value in field \"text\" was too long")
103103 }
104104···109109 return err
110110 }
111111112112- if len(t.Text) > cbg.MaxLength {
112112+ if uint64(len(t.Text)) > cbg.MaxLength {
113113 return xerrors.Errorf("Value in field t.Text was too long")
114114 }
115115···121121 }
122122123123 // t.LexiconTypeID (string) (string)
124124- if len("$type") > cbg.MaxLength {
124124+ if uint64(len("$type")) > cbg.MaxLength {
125125 return xerrors.Errorf("Value in field \"$type\" was too long")
126126 }
127127···142142 // t.Embed (bsky.FeedPost_Embed) (struct)
143143 if t.Embed != nil {
144144145145- if len("embed") > cbg.MaxLength {
145145+ if uint64(len("embed")) > cbg.MaxLength {
146146 return xerrors.Errorf("Value in field \"embed\" was too long")
147147 }
148148···161161 // t.Langs ([]string) (slice)
162162 if t.Langs != nil {
163163164164- if len("langs") > cbg.MaxLength {
164164+ if uint64(len("langs")) > cbg.MaxLength {
165165 return xerrors.Errorf("Value in field \"langs\" was too long")
166166 }
167167···172172 return err
173173 }
174174175175- if len(t.Langs) > cbg.MaxLength {
175175+ if uint64(len(t.Langs)) > cbg.MaxLength {
176176 return xerrors.Errorf("Slice value in field t.Langs was too long")
177177 }
178178···180180 return err
181181 }
182182 for _, v := range t.Langs {
183183- if len(v) > cbg.MaxLength {
183183+ if uint64(len(v)) > cbg.MaxLength {
184184 return xerrors.Errorf("Value in field v was too long")
185185 }
186186···197197 // t.Reply (bsky.FeedPost_ReplyRef) (struct)
198198 if t.Reply != nil {
199199200200- if len("reply") > cbg.MaxLength {
200200+ if uint64(len("reply")) > cbg.MaxLength {
201201 return xerrors.Errorf("Value in field \"reply\" was too long")
202202 }
203203···216216 // t.Facets ([]*bsky.RichtextFacet) (slice)
217217 if t.Facets != nil {
218218219219- if len("facets") > cbg.MaxLength {
219219+ if uint64(len("facets")) > cbg.MaxLength {
220220 return xerrors.Errorf("Value in field \"facets\" was too long")
221221 }
222222···227227 return err
228228 }
229229230230- if len(t.Facets) > cbg.MaxLength {
230230+ if uint64(len(t.Facets)) > cbg.MaxLength {
231231 return xerrors.Errorf("Slice value in field t.Facets was too long")
232232 }
233233···245245 // t.Labels (bsky.FeedPost_Labels) (struct)
246246 if t.Labels != nil {
247247248248- if len("labels") > cbg.MaxLength {
248248+ if uint64(len("labels")) > cbg.MaxLength {
249249 return xerrors.Errorf("Value in field \"labels\" was too long")
250250 }
251251···264264 // t.Entities ([]*bsky.FeedPost_Entity) (slice)
265265 if t.Entities != nil {
266266267267- if len("entities") > cbg.MaxLength {
267267+ if uint64(len("entities")) > cbg.MaxLength {
268268 return xerrors.Errorf("Value in field \"entities\" was too long")
269269 }
270270···275275 return err
276276 }
277277278278- if len(t.Entities) > cbg.MaxLength {
278278+ if uint64(len(t.Entities)) > cbg.MaxLength {
279279 return xerrors.Errorf("Slice value in field t.Entities was too long")
280280 }
281281···291291 }
292292293293 // t.CreatedAt (string) (string)
294294- if len("createdAt") > cbg.MaxLength {
294294+ if uint64(len("createdAt")) > cbg.MaxLength {
295295 return xerrors.Errorf("Value in field \"createdAt\" was too long")
296296 }
297297···302302 return err
303303 }
304304305305- if len(t.CreatedAt) > cbg.MaxLength {
305305+ if uint64(len(t.CreatedAt)) > cbg.MaxLength {
306306 return xerrors.Errorf("Value in field t.CreatedAt was too long")
307307 }
308308···646646 }
647647648648 // t.LexiconTypeID (string) (string)
649649- if len("$type") > cbg.MaxLength {
649649+ if uint64(len("$type")) > cbg.MaxLength {
650650 return xerrors.Errorf("Value in field \"$type\" was too long")
651651 }
652652···665665 }
666666667667 // t.Subject (atproto.RepoStrongRef) (struct)
668668- if len("subject") > cbg.MaxLength {
668668+ if uint64(len("subject")) > cbg.MaxLength {
669669 return xerrors.Errorf("Value in field \"subject\" was too long")
670670 }
671671···681681 }
682682683683 // t.CreatedAt (string) (string)
684684- if len("createdAt") > cbg.MaxLength {
684684+ if uint64(len("createdAt")) > cbg.MaxLength {
685685 return xerrors.Errorf("Value in field \"createdAt\" was too long")
686686 }
687687···692692 return err
693693 }
694694695695- if len(t.CreatedAt) > cbg.MaxLength {
695695+ if uint64(len(t.CreatedAt)) > cbg.MaxLength {
696696 return xerrors.Errorf("Value in field t.CreatedAt was too long")
697697 }
698698···807807 }
808808809809 // t.Type (string) (string)
810810- if len("type") > cbg.MaxLength {
810810+ if uint64(len("type")) > cbg.MaxLength {
811811 return xerrors.Errorf("Value in field \"type\" was too long")
812812 }
813813···818818 return err
819819 }
820820821821- if len(t.Type) > cbg.MaxLength {
821821+ if uint64(len(t.Type)) > cbg.MaxLength {
822822 return xerrors.Errorf("Value in field t.Type was too long")
823823 }
824824···830830 }
831831832832 // t.Index (bsky.FeedPost_TextSlice) (struct)
833833- if len("index") > cbg.MaxLength {
833833+ if uint64(len("index")) > cbg.MaxLength {
834834 return xerrors.Errorf("Value in field \"index\" was too long")
835835 }
836836···846846 }
847847848848 // t.Value (string) (string)
849849- if len("value") > cbg.MaxLength {
849849+ if uint64(len("value")) > cbg.MaxLength {
850850 return xerrors.Errorf("Value in field \"value\" was too long")
851851 }
852852···857857 return err
858858 }
859859860860- if len(t.Value) > cbg.MaxLength {
860860+ if uint64(len(t.Value)) > cbg.MaxLength {
861861 return xerrors.Errorf("Value in field t.Value was too long")
862862 }
863863···972972 }
973973974974 // t.Root (atproto.RepoStrongRef) (struct)
975975- if len("root") > cbg.MaxLength {
975975+ if uint64(len("root")) > cbg.MaxLength {
976976 return xerrors.Errorf("Value in field \"root\" was too long")
977977 }
978978···988988 }
989989990990 // t.Parent (atproto.RepoStrongRef) (struct)
991991- if len("parent") > cbg.MaxLength {
991991+ if uint64(len("parent")) > cbg.MaxLength {
992992 return xerrors.Errorf("Value in field \"parent\" was too long")
993993 }
994994···11051105 }
1106110611071107 // t.End (int64) (int64)
11081108- if len("end") > cbg.MaxLength {
11081108+ if uint64(len("end")) > cbg.MaxLength {
11091109 return xerrors.Errorf("Value in field \"end\" was too long")
11101110 }
11111111···11271127 }
1128112811291129 // t.Start (int64) (int64)
11301130- if len("start") > cbg.MaxLength {
11301130+ if uint64(len("start")) > cbg.MaxLength {
11311131 return xerrors.Errorf("Value in field \"start\" was too long")
11321132 }
11331133···12621262 }
1263126312641264 // t.LexiconTypeID (string) (string)
12651265- if len("$type") > cbg.MaxLength {
12651265+ if uint64(len("$type")) > cbg.MaxLength {
12661266 return xerrors.Errorf("Value in field \"$type\" was too long")
12671267 }
12681268···12811281 }
1282128212831283 // t.Images ([]*bsky.EmbedImages_Image) (slice)
12841284- if len("images") > cbg.MaxLength {
12841284+ if uint64(len("images")) > cbg.MaxLength {
12851285 return xerrors.Errorf("Value in field \"images\" was too long")
12861286 }
12871287···12921292 return err
12931293 }
1294129412951295- if len(t.Images) > cbg.MaxLength {
12951295+ if uint64(len(t.Images)) > cbg.MaxLength {
12961296 return xerrors.Errorf("Slice value in field t.Images was too long")
12971297 }
12981298···14281428 }
1429142914301430 // t.LexiconTypeID (string) (string)
14311431- if len("$type") > cbg.MaxLength {
14311431+ if uint64(len("$type")) > cbg.MaxLength {
14321432 return xerrors.Errorf("Value in field \"$type\" was too long")
14331433 }
14341434···14471447 }
1448144814491449 // t.External (bsky.EmbedExternal_External) (struct)
14501450- if len("external") > cbg.MaxLength {
14501450+ if uint64(len("external")) > cbg.MaxLength {
14511451 return xerrors.Errorf("Value in field \"external\" was too long")
14521452 }
14531453···15601560 }
1561156115621562 // t.Uri (string) (string)
15631563- if len("uri") > cbg.MaxLength {
15631563+ if uint64(len("uri")) > cbg.MaxLength {
15641564 return xerrors.Errorf("Value in field \"uri\" was too long")
15651565 }
15661566···15711571 return err
15721572 }
1573157315741574- if len(t.Uri) > cbg.MaxLength {
15741574+ if uint64(len(t.Uri)) > cbg.MaxLength {
15751575 return xerrors.Errorf("Value in field t.Uri was too long")
15761576 }
15771577···15851585 // t.Thumb (util.LexBlob) (struct)
15861586 if t.Thumb != nil {
1587158715881588- if len("thumb") > cbg.MaxLength {
15881588+ if uint64(len("thumb")) > cbg.MaxLength {
15891589 return xerrors.Errorf("Value in field \"thumb\" was too long")
15901590 }
15911591···16021602 }
1603160316041604 // t.Title (string) (string)
16051605- if len("title") > cbg.MaxLength {
16051605+ if uint64(len("title")) > cbg.MaxLength {
16061606 return xerrors.Errorf("Value in field \"title\" was too long")
16071607 }
16081608···16131613 return err
16141614 }
1615161516161616- if len(t.Title) > cbg.MaxLength {
16161616+ if uint64(len(t.Title)) > cbg.MaxLength {
16171617 return xerrors.Errorf("Value in field t.Title was too long")
16181618 }
16191619···16251625 }
1626162616271627 // t.Description (string) (string)
16281628- if len("description") > cbg.MaxLength {
16281628+ if uint64(len("description")) > cbg.MaxLength {
16291629 return xerrors.Errorf("Value in field \"description\" was too long")
16301630 }
16311631···16361636 return err
16371637 }
1638163816391639- if len(t.Description) > cbg.MaxLength {
16391639+ if uint64(len(t.Description)) > cbg.MaxLength {
16401640 return xerrors.Errorf("Value in field t.Description was too long")
16411641 }
16421642···17671767 }
1768176817691769 // t.Alt (string) (string)
17701770- if len("alt") > cbg.MaxLength {
17701770+ if uint64(len("alt")) > cbg.MaxLength {
17711771 return xerrors.Errorf("Value in field \"alt\" was too long")
17721772 }
17731773···17781778 return err
17791779 }
1780178017811781- if len(t.Alt) > cbg.MaxLength {
17811781+ if uint64(len(t.Alt)) > cbg.MaxLength {
17821782 return xerrors.Errorf("Value in field t.Alt was too long")
17831783 }
17841784···17901790 }
1791179117921792 // t.Image (util.LexBlob) (struct)
17931793- if len("image") > cbg.MaxLength {
17931793+ if uint64(len("image")) > cbg.MaxLength {
17941794 return xerrors.Errorf("Value in field \"image\" was too long")
17951795 }
17961796···18081808 // t.AspectRatio (bsky.EmbedImages_AspectRatio) (struct)
18091809 if t.AspectRatio != nil {
1810181018111811- if len("aspectRatio") > cbg.MaxLength {
18111811+ if uint64(len("aspectRatio")) > cbg.MaxLength {
18121812 return xerrors.Errorf("Value in field \"aspectRatio\" was too long")
18131813 }
18141814···19371937 }
1938193819391939 // t.LexiconTypeID (string) (string)
19401940- if len("$type") > cbg.MaxLength {
19401940+ if uint64(len("$type")) > cbg.MaxLength {
19411941 return xerrors.Errorf("Value in field \"$type\" was too long")
19421942 }
19431943···19561956 }
1957195719581958 // t.Subject (string) (string)
19591959- if len("subject") > cbg.MaxLength {
19591959+ if uint64(len("subject")) > cbg.MaxLength {
19601960 return xerrors.Errorf("Value in field \"subject\" was too long")
19611961 }
19621962···19671967 return err
19681968 }
1969196919701970- if len(t.Subject) > cbg.MaxLength {
19701970+ if uint64(len(t.Subject)) > cbg.MaxLength {
19711971 return xerrors.Errorf("Value in field t.Subject was too long")
19721972 }
19731973···19791979 }
1980198019811981 // t.CreatedAt (string) (string)
19821982- if len("createdAt") > cbg.MaxLength {
19821982+ if uint64(len("createdAt")) > cbg.MaxLength {
19831983 return xerrors.Errorf("Value in field \"createdAt\" was too long")
19841984 }
19851985···19901990 return err
19911991 }
1992199219931993- if len(t.CreatedAt) > cbg.MaxLength {
19931993+ if uint64(len(t.CreatedAt)) > cbg.MaxLength {
19941994 return xerrors.Errorf("Value in field t.CreatedAt was too long")
19951995 }
19961996···21172117 }
2118211821192119 // t.LexiconTypeID (string) (string)
21202120- if len("$type") > cbg.MaxLength {
21202120+ if uint64(len("$type")) > cbg.MaxLength {
21212121 return xerrors.Errorf("Value in field \"$type\" was too long")
21222122 }
21232123···21382138 // t.Avatar (util.LexBlob) (struct)
21392139 if t.Avatar != nil {
2140214021412141- if len("avatar") > cbg.MaxLength {
21412141+ if uint64(len("avatar")) > cbg.MaxLength {
21422142 return xerrors.Errorf("Value in field \"avatar\" was too long")
21432143 }
21442144···21572157 // t.Banner (util.LexBlob) (struct)
21582158 if t.Banner != nil {
2159215921602160- if len("banner") > cbg.MaxLength {
21602160+ if uint64(len("banner")) > cbg.MaxLength {
21612161 return xerrors.Errorf("Value in field \"banner\" was too long")
21622162 }
21632163···21762176 // t.Labels (bsky.ActorProfile_Labels) (struct)
21772177 if t.Labels != nil {
2178217821792179- if len("labels") > cbg.MaxLength {
21792179+ if uint64(len("labels")) > cbg.MaxLength {
21802180 return xerrors.Errorf("Value in field \"labels\" was too long")
21812181 }
21822182···21952195 // t.Description (string) (string)
21962196 if t.Description != nil {
2197219721982198- if len("description") > cbg.MaxLength {
21982198+ if uint64(len("description")) > cbg.MaxLength {
21992199 return xerrors.Errorf("Value in field \"description\" was too long")
22002200 }
22012201···22112211 return err
22122212 }
22132213 } else {
22142214- if len(*t.Description) > cbg.MaxLength {
22142214+ if uint64(len(*t.Description)) > cbg.MaxLength {
22152215 return xerrors.Errorf("Value in field t.Description was too long")
22162216 }
22172217···22272227 // t.DisplayName (string) (string)
22282228 if t.DisplayName != nil {
2229222922302230- if len("displayName") > cbg.MaxLength {
22302230+ if uint64(len("displayName")) > cbg.MaxLength {
22312231 return xerrors.Errorf("Value in field \"displayName\" was too long")
22322232 }
22332233···22432243 return err
22442244 }
22452245 } else {
22462246- if len(*t.DisplayName) > cbg.MaxLength {
22462246+ if uint64(len(*t.DisplayName)) > cbg.MaxLength {
22472247 return xerrors.Errorf("Value in field t.DisplayName was too long")
22482248 }
22492249···24312431 }
2432243224332433 // t.LexiconTypeID (string) (string)
24342434- if len("$type") > cbg.MaxLength {
24342434+ if uint64(len("$type")) > cbg.MaxLength {
24352435 return xerrors.Errorf("Value in field \"$type\" was too long")
24362436 }
24372437···24502450 }
2451245124522452 // t.Record (atproto.RepoStrongRef) (struct)
24532453- if len("record") > cbg.MaxLength {
24532453+ if uint64(len("record")) > cbg.MaxLength {
24542454 return xerrors.Errorf("Value in field \"record\" was too long")
24552455 }
24562456···25582558 }
2559255925602560 // t.LexiconTypeID (string) (string)
25612561- if len("$type") > cbg.MaxLength {
25612561+ if uint64(len("$type")) > cbg.MaxLength {
25622562 return xerrors.Errorf("Value in field \"$type\" was too long")
25632563 }
25642564···25772577 }
2578257825792579 // t.Subject (atproto.RepoStrongRef) (struct)
25802580- if len("subject") > cbg.MaxLength {
25802580+ if uint64(len("subject")) > cbg.MaxLength {
25812581 return xerrors.Errorf("Value in field \"subject\" was too long")
25822582 }
25832583···25932593 }
2594259425952595 // t.CreatedAt (string) (string)
25962596- if len("createdAt") > cbg.MaxLength {
25962596+ if uint64(len("createdAt")) > cbg.MaxLength {
25972597 return xerrors.Errorf("Value in field \"createdAt\" was too long")
25982598 }
25992599···26042604 return err
26052605 }
2606260626072607- if len(t.CreatedAt) > cbg.MaxLength {
26072607+ if uint64(len(t.CreatedAt)) > cbg.MaxLength {
26082608 return xerrors.Errorf("Value in field t.CreatedAt was too long")
26092609 }
26102610···27192719 }
2720272027212721 // t.Index (bsky.RichtextFacet_ByteSlice) (struct)
27222722- if len("index") > cbg.MaxLength {
27222722+ if uint64(len("index")) > cbg.MaxLength {
27232723 return xerrors.Errorf("Value in field \"index\" was too long")
27242724 }
27252725···27352735 }
2736273627372737 // t.Features ([]*bsky.RichtextFacet_Features_Elem) (slice)
27382738- if len("features") > cbg.MaxLength {
27382738+ if uint64(len("features")) > cbg.MaxLength {
27392739 return xerrors.Errorf("Value in field \"features\" was too long")
27402740 }
27412741···27462746 return err
27472747 }
2748274827492749- if len(t.Features) > cbg.MaxLength {
27492749+ if uint64(len(t.Features)) > cbg.MaxLength {
27502750 return xerrors.Errorf("Slice value in field t.Features was too long")
27512751 }
27522752···28912891 }
2892289228932893 // t.ByteEnd (int64) (int64)
28942894- if len("byteEnd") > cbg.MaxLength {
28942894+ if uint64(len("byteEnd")) > cbg.MaxLength {
28952895 return xerrors.Errorf("Value in field \"byteEnd\" was too long")
28962896 }
28972897···29132913 }
2914291429152915 // t.ByteStart (int64) (int64)
29162916- if len("byteStart") > cbg.MaxLength {
29162916+ if uint64(len("byteStart")) > cbg.MaxLength {
29172917 return xerrors.Errorf("Value in field \"byteStart\" was too long")
29182918 }
29192919···30483048 }
3049304930503050 // t.Uri (string) (string)
30513051- if len("uri") > cbg.MaxLength {
30513051+ if uint64(len("uri")) > cbg.MaxLength {
30523052 return xerrors.Errorf("Value in field \"uri\" was too long")
30533053 }
30543054···30593059 return err
30603060 }
3061306130623062- if len(t.Uri) > cbg.MaxLength {
30623062+ if uint64(len(t.Uri)) > cbg.MaxLength {
30633063 return xerrors.Errorf("Value in field t.Uri was too long")
30643064 }
30653065···30713071 }
3072307230733073 // t.LexiconTypeID (string) (string)
30743074- if len("$type") > cbg.MaxLength {
30743074+ if uint64(len("$type")) > cbg.MaxLength {
30753075 return xerrors.Errorf("Value in field \"$type\" was too long")
30763076 }
30773077···31733173 }
3174317431753175 // t.Did (string) (string)
31763176- if len("did") > cbg.MaxLength {
31763176+ if uint64(len("did")) > cbg.MaxLength {
31773177 return xerrors.Errorf("Value in field \"did\" was too long")
31783178 }
31793179···31843184 return err
31853185 }
3186318631873187- if len(t.Did) > cbg.MaxLength {
31873187+ if uint64(len(t.Did)) > cbg.MaxLength {
31883188 return xerrors.Errorf("Value in field t.Did was too long")
31893189 }
31903190···31963196 }
3197319731983198 // t.LexiconTypeID (string) (string)
31993199- if len("$type") > cbg.MaxLength {
31993199+ if uint64(len("$type")) > cbg.MaxLength {
32003200 return xerrors.Errorf("Value in field \"$type\" was too long")
32013201 }
32023202···32983298 }
3299329933003300 // t.Tag (string) (string)
33013301- if len("tag") > cbg.MaxLength {
33013301+ if uint64(len("tag")) > cbg.MaxLength {
33023302 return xerrors.Errorf("Value in field \"tag\" was too long")
33033303 }
33043304···33093309 return err
33103310 }
3311331133123312- if len(t.Tag) > cbg.MaxLength {
33123312+ if uint64(len(t.Tag)) > cbg.MaxLength {
33133313 return xerrors.Errorf("Value in field t.Tag was too long")
33143314 }
33153315···33213321 }
3322332233233323 // t.LexiconTypeID (string) (string)
33243324- if len("$type") > cbg.MaxLength {
33243324+ if uint64(len("$type")) > cbg.MaxLength {
33253325 return xerrors.Errorf("Value in field \"$type\" was too long")
33263326 }
33273327···34233423 }
3424342434253425 // t.LexiconTypeID (string) (string)
34263426- if len("$type") > cbg.MaxLength {
34263426+ if uint64(len("$type")) > cbg.MaxLength {
34273427 return xerrors.Errorf("Value in field \"$type\" was too long")
34283428 }
34293429···34423442 }
3443344334443444 // t.Media (bsky.EmbedRecordWithMedia_Media) (struct)
34453445- if len("media") > cbg.MaxLength {
34453445+ if uint64(len("media")) > cbg.MaxLength {
34463446 return xerrors.Errorf("Value in field \"media\" was too long")
34473447 }
34483448···34583458 }
3459345934603460 // t.Record (bsky.EmbedRecord) (struct)
34613461- if len("record") > cbg.MaxLength {
34613461+ if uint64(len("record")) > cbg.MaxLength {
34623462 return xerrors.Errorf("Value in field \"record\" was too long")
34633463 }
34643464···35863586 }
3587358735883588 // t.Uri (string) (string)
35893589- if len("uri") > cbg.MaxLength {
35893589+ if uint64(len("uri")) > cbg.MaxLength {
35903590 return xerrors.Errorf("Value in field \"uri\" was too long")
35913591 }
35923592···35973597 return err
35983598 }
3599359936003600- if len(t.Uri) > cbg.MaxLength {
36003600+ if uint64(len(t.Uri)) > cbg.MaxLength {
36013601 return xerrors.Errorf("Value in field t.Uri was too long")
36023602 }
36033603···36093609 }
3610361036113611 // t.LexiconTypeID (string) (string)
36123612- if len("$type") > cbg.MaxLength {
36123612+ if uint64(len("$type")) > cbg.MaxLength {
36133613 return xerrors.Errorf("Value in field \"$type\" was too long")
36143614 }
36153615···36283628 }
3629362936303630 // t.NotFound (bool) (bool)
36313631- if len("notFound") > cbg.MaxLength {
36313631+ if uint64(len("notFound")) > cbg.MaxLength {
36323632 return xerrors.Errorf("Value in field \"notFound\" was too long")
36333633 }
36343634···37453745 }
3746374637473747 // t.LexiconTypeID (string) (string)
37483748- if len("$type") > cbg.MaxLength {
37483748+ if uint64(len("$type")) > cbg.MaxLength {
37493749 return xerrors.Errorf("Value in field \"$type\" was too long")
37503750 }
37513751···37643764 }
3765376537663766 // t.Subject (string) (string)
37673767- if len("subject") > cbg.MaxLength {
37673767+ if uint64(len("subject")) > cbg.MaxLength {
37683768 return xerrors.Errorf("Value in field \"subject\" was too long")
37693769 }
37703770···37753775 return err
37763776 }
3777377737783778- if len(t.Subject) > cbg.MaxLength {
37783778+ if uint64(len(t.Subject)) > cbg.MaxLength {
37793779 return xerrors.Errorf("Value in field t.Subject was too long")
37803780 }
37813781···37873787 }
3788378837893789 // t.CreatedAt (string) (string)
37903790- if len("createdAt") > cbg.MaxLength {
37903790+ if uint64(len("createdAt")) > cbg.MaxLength {
37913791 return xerrors.Errorf("Value in field \"createdAt\" was too long")
37923792 }
37933793···37983798 return err
37993799 }
3800380038013801- if len(t.CreatedAt) > cbg.MaxLength {
38013801+ if uint64(len(t.CreatedAt)) > cbg.MaxLength {
38023802 return xerrors.Errorf("Value in field t.CreatedAt was too long")
38033803 }
38043804···39213921 }
3922392239233923 // t.Name (string) (string)
39243924- if len("name") > cbg.MaxLength {
39243924+ if uint64(len("name")) > cbg.MaxLength {
39253925 return xerrors.Errorf("Value in field \"name\" was too long")
39263926 }
39273927···39323932 return err
39333933 }
3934393439353935- if len(t.Name) > cbg.MaxLength {
39353935+ if uint64(len(t.Name)) > cbg.MaxLength {
39363936 return xerrors.Errorf("Value in field t.Name was too long")
39373937 }
39383938···39443944 }
3945394539463946 // t.LexiconTypeID (string) (string)
39473947- if len("$type") > cbg.MaxLength {
39473947+ if uint64(len("$type")) > cbg.MaxLength {
39483948 return xerrors.Errorf("Value in field \"$type\" was too long")
39493949 }
39503950···39653965 // t.Avatar (util.LexBlob) (struct)
39663966 if t.Avatar != nil {
3967396739683968- if len("avatar") > cbg.MaxLength {
39683968+ if uint64(len("avatar")) > cbg.MaxLength {
39693969 return xerrors.Errorf("Value in field \"avatar\" was too long")
39703970 }
39713971···39843984 // t.Labels (bsky.GraphList_Labels) (struct)
39853985 if t.Labels != nil {
3986398639873987- if len("labels") > cbg.MaxLength {
39873987+ if uint64(len("labels")) > cbg.MaxLength {
39883988 return xerrors.Errorf("Value in field \"labels\" was too long")
39893989 }
39903990···40014001 }
4002400240034003 // t.Purpose (string) (string)
40044004- if len("purpose") > cbg.MaxLength {
40044004+ if uint64(len("purpose")) > cbg.MaxLength {
40054005 return xerrors.Errorf("Value in field \"purpose\" was too long")
40064006 }
40074007···40174017 return err
40184018 }
40194019 } else {
40204020- if len(*t.Purpose) > cbg.MaxLength {
40204020+ if uint64(len(*t.Purpose)) > cbg.MaxLength {
40214021 return xerrors.Errorf("Value in field t.Purpose was too long")
40224022 }
40234023···40304030 }
4031403140324032 // t.CreatedAt (string) (string)
40334033- if len("createdAt") > cbg.MaxLength {
40334033+ if uint64(len("createdAt")) > cbg.MaxLength {
40344034 return xerrors.Errorf("Value in field \"createdAt\" was too long")
40354035 }
40364036···40414041 return err
40424042 }
4043404340444044- if len(t.CreatedAt) > cbg.MaxLength {
40444044+ if uint64(len(t.CreatedAt)) > cbg.MaxLength {
40454045 return xerrors.Errorf("Value in field t.CreatedAt was too long")
40464046 }
40474047···40554055 // t.Description (string) (string)
40564056 if t.Description != nil {
4057405740584058- if len("description") > cbg.MaxLength {
40584058+ if uint64(len("description")) > cbg.MaxLength {
40594059 return xerrors.Errorf("Value in field \"description\" was too long")
40604060 }
40614061···40714071 return err
40724072 }
40734073 } else {
40744074- if len(*t.Description) > cbg.MaxLength {
40744074+ if uint64(len(*t.Description)) > cbg.MaxLength {
40754075 return xerrors.Errorf("Value in field t.Description was too long")
40764076 }
40774077···40874087 // t.DescriptionFacets ([]*bsky.RichtextFacet) (slice)
40884088 if t.DescriptionFacets != nil {
4089408940904090- if len("descriptionFacets") > cbg.MaxLength {
40904090+ if uint64(len("descriptionFacets")) > cbg.MaxLength {
40914091 return xerrors.Errorf("Value in field \"descriptionFacets\" was too long")
40924092 }
40934093···40984098 return err
40994099 }
4100410041014101- if len(t.DescriptionFacets) > cbg.MaxLength {
41014101+ if uint64(len(t.DescriptionFacets)) > cbg.MaxLength {
41024102 return xerrors.Errorf("Slice value in field t.DescriptionFacets was too long")
41034103 }
41044104···43394339 }
4340434043414341 // t.List (string) (string)
43424342- if len("list") > cbg.MaxLength {
43424342+ if uint64(len("list")) > cbg.MaxLength {
43434343 return xerrors.Errorf("Value in field \"list\" was too long")
43444344 }
43454345···43504350 return err
43514351 }
4352435243534353- if len(t.List) > cbg.MaxLength {
43534353+ if uint64(len(t.List)) > cbg.MaxLength {
43544354 return xerrors.Errorf("Value in field t.List was too long")
43554355 }
43564356···43624362 }
4363436343644364 // t.LexiconTypeID (string) (string)
43654365- if len("$type") > cbg.MaxLength {
43654365+ if uint64(len("$type")) > cbg.MaxLength {
43664366 return xerrors.Errorf("Value in field \"$type\" was too long")
43674367 }
43684368···43814381 }
4382438243834383 // t.Subject (string) (string)
43844384- if len("subject") > cbg.MaxLength {
43844384+ if uint64(len("subject")) > cbg.MaxLength {
43854385 return xerrors.Errorf("Value in field \"subject\" was too long")
43864386 }
43874387···43924392 return err
43934393 }
4394439443954395- if len(t.Subject) > cbg.MaxLength {
43954395+ if uint64(len(t.Subject)) > cbg.MaxLength {
43964396 return xerrors.Errorf("Value in field t.Subject was too long")
43974397 }
43984398···44044404 }
4405440544064406 // t.CreatedAt (string) (string)
44074407- if len("createdAt") > cbg.MaxLength {
44074407+ if uint64(len("createdAt")) > cbg.MaxLength {
44084408 return xerrors.Errorf("Value in field \"createdAt\" was too long")
44094409 }
44104410···44154415 return err
44164416 }
4417441744184418- if len(t.CreatedAt) > cbg.MaxLength {
44184418+ if uint64(len(t.CreatedAt)) > cbg.MaxLength {
44194419 return xerrors.Errorf("Value in field t.CreatedAt was too long")
44204420 }
44214421···45494549 }
4550455045514551 // t.Did (string) (string)
45524552- if len("did") > cbg.MaxLength {
45524552+ if uint64(len("did")) > cbg.MaxLength {
45534553 return xerrors.Errorf("Value in field \"did\" was too long")
45544554 }
45554555···45604560 return err
45614561 }
4562456245634563- if len(t.Did) > cbg.MaxLength {
45634563+ if uint64(len(t.Did)) > cbg.MaxLength {
45644564 return xerrors.Errorf("Value in field t.Did was too long")
45654565 }
45664566···45724572 }
4573457345744574 // t.LexiconTypeID (string) (string)
45754575- if len("$type") > cbg.MaxLength {
45754575+ if uint64(len("$type")) > cbg.MaxLength {
45764576 return xerrors.Errorf("Value in field \"$type\" was too long")
45774577 }
45784578···45934593 // t.Avatar (util.LexBlob) (struct)
45944594 if t.Avatar != nil {
4595459545964596- if len("avatar") > cbg.MaxLength {
45964596+ if uint64(len("avatar")) > cbg.MaxLength {
45974597 return xerrors.Errorf("Value in field \"avatar\" was too long")
45984598 }
45994599···46124612 // t.Labels (bsky.FeedGenerator_Labels) (struct)
46134613 if t.Labels != nil {
4614461446154615- if len("labels") > cbg.MaxLength {
46154615+ if uint64(len("labels")) > cbg.MaxLength {
46164616 return xerrors.Errorf("Value in field \"labels\" was too long")
46174617 }
46184618···46294629 }
4630463046314631 // t.CreatedAt (string) (string)
46324632- if len("createdAt") > cbg.MaxLength {
46324632+ if uint64(len("createdAt")) > cbg.MaxLength {
46334633 return xerrors.Errorf("Value in field \"createdAt\" was too long")
46344634 }
46354635···46404640 return err
46414641 }
4642464246434643- if len(t.CreatedAt) > cbg.MaxLength {
46434643+ if uint64(len(t.CreatedAt)) > cbg.MaxLength {
46444644 return xerrors.Errorf("Value in field t.CreatedAt was too long")
46454645 }
46464646···46544654 // t.Description (string) (string)
46554655 if t.Description != nil {
4656465646574657- if len("description") > cbg.MaxLength {
46574657+ if uint64(len("description")) > cbg.MaxLength {
46584658 return xerrors.Errorf("Value in field \"description\" was too long")
46594659 }
46604660···46704670 return err
46714671 }
46724672 } else {
46734673- if len(*t.Description) > cbg.MaxLength {
46734673+ if uint64(len(*t.Description)) > cbg.MaxLength {
46744674 return xerrors.Errorf("Value in field t.Description was too long")
46754675 }
46764676···46844684 }
4685468546864686 // t.DisplayName (string) (string)
46874687- if len("displayName") > cbg.MaxLength {
46874687+ if uint64(len("displayName")) > cbg.MaxLength {
46884688 return xerrors.Errorf("Value in field \"displayName\" was too long")
46894689 }
46904690···46954695 return err
46964696 }
4697469746984698- if len(t.DisplayName) > cbg.MaxLength {
46984698+ if uint64(len(t.DisplayName)) > cbg.MaxLength {
46994699 return xerrors.Errorf("Value in field t.DisplayName was too long")
47004700 }
47014701···47094709 // t.DescriptionFacets ([]*bsky.RichtextFacet) (slice)
47104710 if t.DescriptionFacets != nil {
4711471147124712- if len("descriptionFacets") > cbg.MaxLength {
47124712+ if uint64(len("descriptionFacets")) > cbg.MaxLength {
47134713 return xerrors.Errorf("Value in field \"descriptionFacets\" was too long")
47144714 }
47154715···47204720 return err
47214721 }
4722472247234723- if len(t.DescriptionFacets) > cbg.MaxLength {
47234723+ if uint64(len(t.DescriptionFacets)) > cbg.MaxLength {
47244724 return xerrors.Errorf("Slice value in field t.DescriptionFacets was too long")
47254725 }
47264726···49514951 }
4952495249534953 // t.LexiconTypeID (string) (string)
49544954- if len("$type") > cbg.MaxLength {
49544954+ if uint64(len("$type")) > cbg.MaxLength {
49554955 return xerrors.Errorf("Value in field \"$type\" was too long")
49564956 }
49574957···49704970 }
4971497149724972 // t.Subject (string) (string)
49734973- if len("subject") > cbg.MaxLength {
49734973+ if uint64(len("subject")) > cbg.MaxLength {
49744974 return xerrors.Errorf("Value in field \"subject\" was too long")
49754975 }
49764976···49814981 return err
49824982 }
4983498349844984- if len(t.Subject) > cbg.MaxLength {
49844984+ if uint64(len(t.Subject)) > cbg.MaxLength {
49854985 return xerrors.Errorf("Value in field t.Subject was too long")
49864986 }
49874987···49934993 }
4994499449954995 // t.CreatedAt (string) (string)
49964996- if len("createdAt") > cbg.MaxLength {
49964996+ if uint64(len("createdAt")) > cbg.MaxLength {
49974997 return xerrors.Errorf("Value in field \"createdAt\" was too long")
49984998 }
49994999···50045004 return err
50055005 }
5006500650075007- if len(t.CreatedAt) > cbg.MaxLength {
50075007+ if uint64(len(t.CreatedAt)) > cbg.MaxLength {
50085008 return xerrors.Errorf("Value in field t.CreatedAt was too long")
50095009 }
50105010···51105110 }
5111511151125112 // t.Width (int64) (int64)
51135113- if len("width") > cbg.MaxLength {
51135113+ if uint64(len("width")) > cbg.MaxLength {
51145114 return xerrors.Errorf("Value in field \"width\" was too long")
51155115 }
51165116···51325132 }
5133513351345134 // t.Height (int64) (int64)
51355135- if len("height") > cbg.MaxLength {
51355135+ if uint64(len("height")) > cbg.MaxLength {
51365136 return xerrors.Errorf("Value in field \"height\" was too long")
51375137 }
51385138···52725272 }
5273527352745274 // t.Post (string) (string)
52755275- if len("post") > cbg.MaxLength {
52755275+ if uint64(len("post")) > cbg.MaxLength {
52765276 return xerrors.Errorf("Value in field \"post\" was too long")
52775277 }
52785278···52835283 return err
52845284 }
5285528552865286- if len(t.Post) > cbg.MaxLength {
52865286+ if uint64(len(t.Post)) > cbg.MaxLength {
52875287 return xerrors.Errorf("Value in field t.Post was too long")
52885288 }
52895289···52955295 }
5296529652975297 // t.LexiconTypeID (string) (string)
52985298- if len("$type") > cbg.MaxLength {
52985298+ if uint64(len("$type")) > cbg.MaxLength {
52995299 return xerrors.Errorf("Value in field \"$type\" was too long")
53005300 }
53015301···53165316 // t.Allow ([]*bsky.FeedThreadgate_Allow_Elem) (slice)
53175317 if t.Allow != nil {
5318531853195319- if len("allow") > cbg.MaxLength {
53195319+ if uint64(len("allow")) > cbg.MaxLength {
53205320 return xerrors.Errorf("Value in field \"allow\" was too long")
53215321 }
53225322···53275327 return err
53285328 }
5329532953305330- if len(t.Allow) > cbg.MaxLength {
53305330+ if uint64(len(t.Allow)) > cbg.MaxLength {
53315331 return xerrors.Errorf("Slice value in field t.Allow was too long")
53325332 }
53335333···53435343 }
5344534453455345 // t.CreatedAt (string) (string)
53465346- if len("createdAt") > cbg.MaxLength {
53465346+ if uint64(len("createdAt")) > cbg.MaxLength {
53475347 return xerrors.Errorf("Value in field \"createdAt\" was too long")
53485348 }
53495349···53545354 return err
53555355 }
5356535653575357- if len(t.CreatedAt) > cbg.MaxLength {
53575357+ if uint64(len(t.CreatedAt)) > cbg.MaxLength {
53585358 return xerrors.Errorf("Value in field t.CreatedAt was too long")
53595359 }
53605360···55095509 }
5510551055115511 // t.List (string) (string)
55125512- if len("list") > cbg.MaxLength {
55125512+ if uint64(len("list")) > cbg.MaxLength {
55135513 return xerrors.Errorf("Value in field \"list\" was too long")
55145514 }
55155515···55205520 return err
55215521 }
5522552255235523- if len(t.List) > cbg.MaxLength {
55235523+ if uint64(len(t.List)) > cbg.MaxLength {
55245524 return xerrors.Errorf("Value in field t.List was too long")
55255525 }
55265526···55325532 }
5533553355345534 // t.LexiconTypeID (string) (string)
55355535- if len("$type") > cbg.MaxLength {
55355535+ if uint64(len("$type")) > cbg.MaxLength {
55365536 return xerrors.Errorf("Value in field \"$type\" was too long")
55375537 }
55385538···56345634 }
5635563556365636 // t.LexiconTypeID (string) (string)
56375637- if len("$type") > cbg.MaxLength {
56375637+ if uint64(len("$type")) > cbg.MaxLength {
56385638 return xerrors.Errorf("Value in field \"$type\" was too long")
56395639 }
56405640···57255725 }
5726572657275727 // t.LexiconTypeID (string) (string)
57285728- if len("$type") > cbg.MaxLength {
57285728+ if uint64(len("$type")) > cbg.MaxLength {
57295729 return xerrors.Errorf("Value in field \"$type\" was too long")
57305730 }
57315731
···3838 // t.Sig (string) (string)
3939 if t.Sig != "" {
40404141- if len("sig") > cbg.MaxLength {
4141+ if uint64(len("sig")) > cbg.MaxLength {
4242 return xerrors.Errorf("Value in field \"sig\" was too long")
4343 }
4444···4949 return err
5050 }
51515252- if len(t.Sig) > cbg.MaxLength {
5252+ if uint64(len(t.Sig)) > cbg.MaxLength {
5353 return xerrors.Errorf("Value in field t.Sig was too long")
5454 }
5555···6262 }
63636464 // t.Prev (string) (string)
6565- if len("prev") > cbg.MaxLength {
6565+ if uint64(len("prev")) > cbg.MaxLength {
6666 return xerrors.Errorf("Value in field \"prev\" was too long")
6767 }
6868···7878 return err
7979 }
8080 } else {
8181- if len(*t.Prev) > cbg.MaxLength {
8181+ if uint64(len(*t.Prev)) > cbg.MaxLength {
8282 return xerrors.Errorf("Value in field t.Prev was too long")
8383 }
8484···9191 }
92929393 // t.Type (string) (string)
9494- if len("type") > cbg.MaxLength {
9494+ if uint64(len("type")) > cbg.MaxLength {
9595 return xerrors.Errorf("Value in field \"type\" was too long")
9696 }
9797···102102 return err
103103 }
104104105105- if len(t.Type) > cbg.MaxLength {
105105+ if uint64(len(t.Type)) > cbg.MaxLength {
106106 return xerrors.Errorf("Value in field t.Type was too long")
107107 }
108108···114114 }
115115116116 // t.Handle (string) (string)
117117- if len("handle") > cbg.MaxLength {
117117+ if uint64(len("handle")) > cbg.MaxLength {
118118 return xerrors.Errorf("Value in field \"handle\" was too long")
119119 }
120120···125125 return err
126126 }
127127128128- if len(t.Handle) > cbg.MaxLength {
128128+ if uint64(len(t.Handle)) > cbg.MaxLength {
129129 return xerrors.Errorf("Value in field t.Handle was too long")
130130 }
131131···137137 }
138138139139 // t.Service (string) (string)
140140- if len("service") > cbg.MaxLength {
140140+ if uint64(len("service")) > cbg.MaxLength {
141141 return xerrors.Errorf("Value in field \"service\" was too long")
142142 }
143143···148148 return err
149149 }
150150151151- if len(t.Service) > cbg.MaxLength {
151151+ if uint64(len(t.Service)) > cbg.MaxLength {
152152 return xerrors.Errorf("Value in field t.Service was too long")
153153 }
154154···160160 }
161161162162 // t.SigningKey (string) (string)
163163- if len("signingKey") > cbg.MaxLength {
163163+ if uint64(len("signingKey")) > cbg.MaxLength {
164164 return xerrors.Errorf("Value in field \"signingKey\" was too long")
165165 }
166166···171171 return err
172172 }
173173174174- if len(t.SigningKey) > cbg.MaxLength {
174174+ if uint64(len(t.SigningKey)) > cbg.MaxLength {
175175 return xerrors.Errorf("Value in field t.SigningKey was too long")
176176 }
177177···183183 }
184184185185 // t.RecoveryKey (string) (string)
186186- if len("recoveryKey") > cbg.MaxLength {
186186+ if uint64(len("recoveryKey")) > cbg.MaxLength {
187187 return xerrors.Errorf("Value in field \"recoveryKey\" was too long")
188188 }
189189···194194 return err
195195 }
196196197197- if len(t.RecoveryKey) > cbg.MaxLength {
197197+ if uint64(len(t.RecoveryKey)) > cbg.MaxLength {
198198 return xerrors.Errorf("Value in field t.RecoveryKey was too long")
199199 }
200200
+11-11
atproto/data/cbor_gen.go
···3131 }
32323333 // t.Type (string) (string)
3434- if len("$type") > cbg.MaxLength {
3434+ if uint64(len("$type")) > cbg.MaxLength {
3535 return xerrors.Errorf("Value in field \"$type\" was too long")
3636 }
3737···4242 return err
4343 }
44444545- if len(t.Type) > cbg.MaxLength {
4545+ if uint64(len(t.Type)) > cbg.MaxLength {
4646 return xerrors.Errorf("Value in field t.Type was too long")
4747 }
4848···126126 }
127127128128 // t.Cid (string) (string)
129129- if len("cid") > cbg.MaxLength {
129129+ if uint64(len("cid")) > cbg.MaxLength {
130130 return xerrors.Errorf("Value in field \"cid\" was too long")
131131 }
132132···137137 return err
138138 }
139139140140- if len(t.Cid) > cbg.MaxLength {
140140+ if uint64(len(t.Cid)) > cbg.MaxLength {
141141 return xerrors.Errorf("Value in field t.Cid was too long")
142142 }
143143···149149 }
150150151151 // t.MimeType (string) (string)
152152- if len("mimeType") > cbg.MaxLength {
152152+ if uint64(len("mimeType")) > cbg.MaxLength {
153153 return xerrors.Errorf("Value in field \"mimeType\" was too long")
154154 }
155155···160160 return err
161161 }
162162163163- if len(t.MimeType) > cbg.MaxLength {
163163+ if uint64(len(t.MimeType)) > cbg.MaxLength {
164164 return xerrors.Errorf("Value in field t.MimeType was too long")
165165 }
166166···255255 }
256256257257 // t.Ref (data.CIDLink) (struct)
258258- if len("ref") > cbg.MaxLength {
258258+ if uint64(len("ref")) > cbg.MaxLength {
259259 return xerrors.Errorf("Value in field \"ref\" was too long")
260260 }
261261···271271 }
272272273273 // t.Size (int64) (int64)
274274- if len("size") > cbg.MaxLength {
274274+ if uint64(len("size")) > cbg.MaxLength {
275275 return xerrors.Errorf("Value in field \"size\" was too long")
276276 }
277277···293293 }
294294295295 // t.LexiconTypeID (string) (string)
296296- if len("$type") > cbg.MaxLength {
296296+ if uint64(len("$type")) > cbg.MaxLength {
297297 return xerrors.Errorf("Value in field \"$type\" was too long")
298298 }
299299···312312 }
313313314314 // t.MimeType (string) (string)
315315- if len("mimeType") > cbg.MaxLength {
315315+ if uint64(len("mimeType")) > cbg.MaxLength {
316316 return xerrors.Errorf("Value in field \"mimeType\" was too long")
317317 }
318318···323323 return err
324324 }
325325326326- if len(t.MimeType) > cbg.MaxLength {
326326+ if uint64(len(t.MimeType)) > cbg.MaxLength {
327327 return xerrors.Errorf("Value in field t.MimeType was too long")
328328 }
329329
+7-7
events/cbor_gen.go
···3131 }
32323333 // t.MsgType (string) (string)
3434- if len("t") > cbg.MaxLength {
3434+ if uint64(len("t")) > cbg.MaxLength {
3535 return xerrors.Errorf("Value in field \"t\" was too long")
3636 }
3737···4242 return err
4343 }
44444545- if len(t.MsgType) > cbg.MaxLength {
4545+ if uint64(len(t.MsgType)) > cbg.MaxLength {
4646 return xerrors.Errorf("Value in field t.MsgType was too long")
4747 }
4848···5454 }
55555656 // t.Op (int64) (int64)
5757- if len("op") > cbg.MaxLength {
5757+ if uint64(len("op")) > cbg.MaxLength {
5858 return xerrors.Errorf("Value in field \"op\" was too long")
5959 }
6060···174174 }
175175176176 // t.Error (string) (string)
177177- if len("error") > cbg.MaxLength {
177177+ if uint64(len("error")) > cbg.MaxLength {
178178 return xerrors.Errorf("Value in field \"error\" was too long")
179179 }
180180···185185 return err
186186 }
187187188188- if len(t.Error) > cbg.MaxLength {
188188+ if uint64(len(t.Error)) > cbg.MaxLength {
189189 return xerrors.Errorf("Value in field t.Error was too long")
190190 }
191191···197197 }
198198199199 // t.Message (string) (string)
200200- if len("message") > cbg.MaxLength {
200200+ if uint64(len("message")) > cbg.MaxLength {
201201 return xerrors.Errorf("Value in field \"message\" was too long")
202202 }
203203···208208 return err
209209 }
210210211211- if len(t.Message) > cbg.MaxLength {
211211+ if uint64(len(t.Message)) > cbg.MaxLength {
212212 return xerrors.Errorf("Value in field t.Message was too long")
213213 }
214214
···3131 }
32323333 // t.Type (string) (string)
3434- if len("$type") > cbg.MaxLength {
3434+ if uint64(len("$type")) > cbg.MaxLength {
3535 return xerrors.Errorf("Value in field \"$type\" was too long")
3636 }
3737···4242 return err
4343 }
44444545- if len(t.Type) > cbg.MaxLength {
4545+ if uint64(len(t.Type)) > cbg.MaxLength {
4646 return xerrors.Errorf("Value in field t.Type was too long")
4747 }
4848···126126 }
127127128128 // t.Cid (string) (string)
129129- if len("cid") > cbg.MaxLength {
129129+ if uint64(len("cid")) > cbg.MaxLength {
130130 return xerrors.Errorf("Value in field \"cid\" was too long")
131131 }
132132···137137 return err
138138 }
139139140140- if len(t.Cid) > cbg.MaxLength {
140140+ if uint64(len(t.Cid)) > cbg.MaxLength {
141141 return xerrors.Errorf("Value in field t.Cid was too long")
142142 }
143143···149149 }
150150151151 // t.MimeType (string) (string)
152152- if len("mimeType") > cbg.MaxLength {
152152+ if uint64(len("mimeType")) > cbg.MaxLength {
153153 return xerrors.Errorf("Value in field \"mimeType\" was too long")
154154 }
155155···160160 return err
161161 }
162162163163- if len(t.MimeType) > cbg.MaxLength {
163163+ if uint64(len(t.MimeType)) > cbg.MaxLength {
164164 return xerrors.Errorf("Value in field t.MimeType was too long")
165165 }
166166···255255 }
256256257257 // t.Ref (util.LexLink) (struct)
258258- if len("ref") > cbg.MaxLength {
258258+ if uint64(len("ref")) > cbg.MaxLength {
259259 return xerrors.Errorf("Value in field \"ref\" was too long")
260260 }
261261···271271 }
272272273273 // t.Size (int64) (int64)
274274- if len("size") > cbg.MaxLength {
274274+ if uint64(len("size")) > cbg.MaxLength {
275275 return xerrors.Errorf("Value in field \"size\" was too long")
276276 }
277277···293293 }
294294295295 // t.LexiconTypeID (string) (string)
296296- if len("$type") > cbg.MaxLength {
296296+ if uint64(len("$type")) > cbg.MaxLength {
297297 return xerrors.Errorf("Value in field \"$type\" was too long")
298298 }
299299···312312 }
313313314314 // t.MimeType (string) (string)
315315- if len("mimeType") > cbg.MaxLength {
315315+ if uint64(len("mimeType")) > cbg.MaxLength {
316316 return xerrors.Errorf("Value in field \"mimeType\" was too long")
317317 }
318318···323323 return err
324324 }
325325326326- if len(t.MimeType) > cbg.MaxLength {
326326+ if uint64(len(t.MimeType)) > cbg.MaxLength {
327327 return xerrors.Errorf("Value in field t.MimeType was too long")
328328 }
329329
+51-51
lex/util/cbor_gen_test.go
···3636 }
37373838 // t.Bool (bool) (bool)
3939- if len("bool") > cbg.MaxLength {
3939+ if uint64(len("bool")) > cbg.MaxLength {
4040 return xerrors.Errorf("Value in field \"bool\" was too long")
4141 }
4242···5252 }
53535454 // t.Null (string) (string)
5555- if len("null") > cbg.MaxLength {
5555+ if uint64(len("null")) > cbg.MaxLength {
5656 return xerrors.Errorf("Value in field \"null\" was too long")
5757 }
5858···6868 return err
6969 }
7070 } else {
7171- if len(*t.Null) > cbg.MaxLength {
7171+ if uint64(len(*t.Null)) > cbg.MaxLength {
7272 return xerrors.Errorf("Value in field t.Null was too long")
7373 }
7474···8181 }
82828383 // t.Array ([]string) (slice)
8484- if len("array") > cbg.MaxLength {
8484+ if uint64(len("array")) > cbg.MaxLength {
8585 return xerrors.Errorf("Value in field \"array\" was too long")
8686 }
8787···9292 return err
9393 }
94949595- if len(t.Array) > cbg.MaxLength {
9595+ if uint64(len(t.Array)) > cbg.MaxLength {
9696 return xerrors.Errorf("Slice value in field t.Array was too long")
9797 }
9898···100100 return err
101101 }
102102 for _, v := range t.Array {
103103- if len(v) > cbg.MaxLength {
103103+ if uint64(len(v)) > cbg.MaxLength {
104104 return xerrors.Errorf("Value in field v was too long")
105105 }
106106···116116 // t.Absent (string) (string)
117117 if t.Absent != nil {
118118119119- if len("absent") > cbg.MaxLength {
119119+ if uint64(len("absent")) > cbg.MaxLength {
120120 return xerrors.Errorf("Value in field \"absent\" was too long")
121121 }
122122···132132 return err
133133 }
134134 } else {
135135- if len(*t.Absent) > cbg.MaxLength {
135135+ if uint64(len(*t.Absent)) > cbg.MaxLength {
136136 return xerrors.Errorf("Value in field t.Absent was too long")
137137 }
138138···146146 }
147147148148 // t.Object (util.basicSchemaInner) (struct)
149149- if len("object") > cbg.MaxLength {
149149+ if uint64(len("object")) > cbg.MaxLength {
150150 return xerrors.Errorf("Value in field \"object\" was too long")
151151 }
152152···162162 }
163163164164 // t.String (string) (string)
165165- if len("string") > cbg.MaxLength {
165165+ if uint64(len("string")) > cbg.MaxLength {
166166 return xerrors.Errorf("Value in field \"string\" was too long")
167167 }
168168···173173 return err
174174 }
175175176176- if len(t.String) > cbg.MaxLength {
176176+ if uint64(len(t.String)) > cbg.MaxLength {
177177 return xerrors.Errorf("Value in field t.String was too long")
178178 }
179179···185185 }
186186187187 // t.Integer (int64) (int64)
188188- if len("integer") > cbg.MaxLength {
188188+ if uint64(len("integer")) > cbg.MaxLength {
189189 return xerrors.Errorf("Value in field \"integer\" was too long")
190190 }
191191···207207 }
208208209209 // t.Unicode (string) (string)
210210- if len("unicode") > cbg.MaxLength {
210210+ if uint64(len("unicode")) > cbg.MaxLength {
211211 return xerrors.Errorf("Value in field \"unicode\" was too long")
212212 }
213213···218218 return err
219219 }
220220221221- if len(t.Unicode) > cbg.MaxLength {
221221+ if uint64(len(t.Unicode)) > cbg.MaxLength {
222222 return xerrors.Errorf("Value in field t.Unicode was too long")
223223 }
224224···449449 }
450450451451 // t.Arr ([]string) (slice)
452452- if len("arr") > cbg.MaxLength {
452452+ if uint64(len("arr")) > cbg.MaxLength {
453453 return xerrors.Errorf("Value in field \"arr\" was too long")
454454 }
455455···460460 return err
461461 }
462462463463- if len(t.Arr) > cbg.MaxLength {
463463+ if uint64(len(t.Arr)) > cbg.MaxLength {
464464 return xerrors.Errorf("Slice value in field t.Arr was too long")
465465 }
466466···468468 return err
469469 }
470470 for _, v := range t.Arr {
471471- if len(v) > cbg.MaxLength {
471471+ if uint64(len(v)) > cbg.MaxLength {
472472 return xerrors.Errorf("Value in field v was too long")
473473 }
474474···482482 }
483483484484 // t.Bool (bool) (bool)
485485- if len("bool") > cbg.MaxLength {
485485+ if uint64(len("bool")) > cbg.MaxLength {
486486 return xerrors.Errorf("Value in field \"bool\" was too long")
487487 }
488488···498498 }
499499500500 // t.Number (int64) (int64)
501501- if len("number") > cbg.MaxLength {
501501+ if uint64(len("number")) > cbg.MaxLength {
502502 return xerrors.Errorf("Value in field \"number\" was too long")
503503 }
504504···520520 }
521521522522 // t.String (string) (string)
523523- if len("string") > cbg.MaxLength {
523523+ if uint64(len("string")) > cbg.MaxLength {
524524 return xerrors.Errorf("Value in field \"string\" was too long")
525525 }
526526···531531 return err
532532 }
533533534534- if len(t.String) > cbg.MaxLength {
534534+ if uint64(len(t.String)) > cbg.MaxLength {
535535 return xerrors.Errorf("Value in field t.String was too long")
536536 }
537537···699699 }
700700701701 // t.A (util.LexLink) (struct)
702702- if len("a") > cbg.MaxLength {
702702+ if uint64(len("a")) > cbg.MaxLength {
703703 return xerrors.Errorf("Value in field \"a\" was too long")
704704 }
705705···715715 }
716716717717 // t.B (util.LexBytes) (slice)
718718- if len("b") > cbg.MaxLength {
718718+ if uint64(len("b")) > cbg.MaxLength {
719719 return xerrors.Errorf("Value in field \"b\" was too long")
720720 }
721721···726726 return err
727727 }
728728729729- if len(t.B) > cbg.ByteArrayMaxLen {
729729+ if uint64(len(t.B)) > cbg.ByteArrayMaxLen {
730730 return xerrors.Errorf("Byte array in field t.B was too long")
731731 }
732732···734734 return err
735735 }
736736737737- if _, err := cw.Write(t.B[:]); err != nil {
737737+ if _, err := cw.Write(t.B); err != nil {
738738 return err
739739 }
740740741741 // t.C (util.LexBlob) (struct)
742742- if len("c") > cbg.MaxLength {
742742+ if uint64(len("c")) > cbg.MaxLength {
743743 return xerrors.Errorf("Value in field \"c\" was too long")
744744 }
745745···823823 t.B = make([]uint8, extra)
824824 }
825825826826- if _, err := io.ReadFull(cr, t.B[:]); err != nil {
826826+ if _, err := io.ReadFull(cr, t.B); err != nil {
827827 return err
828828 }
829829···864864 }
865865866866 // t.A (string) (string)
867867- if len("a") > cbg.MaxLength {
867867+ if uint64(len("a")) > cbg.MaxLength {
868868 return xerrors.Errorf("Value in field \"a\" was too long")
869869 }
870870···875875 return err
876876 }
877877878878- if len(t.A) > cbg.MaxLength {
878878+ if uint64(len(t.A)) > cbg.MaxLength {
879879 return xerrors.Errorf("Value in field t.A was too long")
880880 }
881881···887887 }
888888889889 // t.B (int64) (int64)
890890- if len("b") > cbg.MaxLength {
890890+ if uint64(len("b")) > cbg.MaxLength {
891891 return xerrors.Errorf("Value in field \"b\" was too long")
892892 }
893893···909909 }
910910911911 // t.C (bool) (bool)
912912- if len("c") > cbg.MaxLength {
912912+ if uint64(len("c")) > cbg.MaxLength {
913913 return xerrors.Errorf("Value in field \"c\" was too long")
914914 }
915915···927927 // t.D (string) (string)
928928 if t.D != nil {
929929930930- if len("d") > cbg.MaxLength {
930930+ if uint64(len("d")) > cbg.MaxLength {
931931 return xerrors.Errorf("Value in field \"d\" was too long")
932932 }
933933···943943 return err
944944 }
945945 } else {
946946- if len(*t.D) > cbg.MaxLength {
946946+ if uint64(len(*t.D)) > cbg.MaxLength {
947947 return xerrors.Errorf("Value in field t.D was too long")
948948 }
949949···957957 }
958958959959 // t.E (string) (string)
960960- if len("e") > cbg.MaxLength {
960960+ if uint64(len("e")) > cbg.MaxLength {
961961 return xerrors.Errorf("Value in field \"e\" was too long")
962962 }
963963···973973 return err
974974 }
975975 } else {
976976- if len(*t.E) > cbg.MaxLength {
976976+ if uint64(len(*t.E)) > cbg.MaxLength {
977977 return xerrors.Errorf("Value in field t.E was too long")
978978 }
979979···986986 }
987987988988 // t.F ([]string) (slice)
989989- if len("f") > cbg.MaxLength {
989989+ if uint64(len("f")) > cbg.MaxLength {
990990 return xerrors.Errorf("Value in field \"f\" was too long")
991991 }
992992···997997 return err
998998 }
99999910001000- if len(t.F) > cbg.MaxLength {
10001000+ if uint64(len(t.F)) > cbg.MaxLength {
10011001 return xerrors.Errorf("Slice value in field t.F was too long")
10021002 }
10031003···10051005 return err
10061006 }
10071007 for _, v := range t.F {
10081008- if len(v) > cbg.MaxLength {
10081008+ if uint64(len(v)) > cbg.MaxLength {
10091009 return xerrors.Errorf("Value in field v was too long")
10101010 }
10111011···10191019 }
1020102010211021 // t.G (util.basicOldSchemaInner) (struct)
10221022- if len("g") > cbg.MaxLength {
10221022+ if uint64(len("g")) > cbg.MaxLength {
10231023 return xerrors.Errorf("Value in field \"g\" was too long")
10241024 }
10251025···12431243 }
1244124412451245 // t.H (string) (string)
12461246- if len("h") > cbg.MaxLength {
12461246+ if uint64(len("h")) > cbg.MaxLength {
12471247 return xerrors.Errorf("Value in field \"h\" was too long")
12481248 }
12491249···12541254 return err
12551255 }
1256125612571257- if len(t.H) > cbg.MaxLength {
12571257+ if uint64(len(t.H)) > cbg.MaxLength {
12581258 return xerrors.Errorf("Value in field t.H was too long")
12591259 }
12601260···12661266 }
1267126712681268 // t.I (int64) (int64)
12691269- if len("i") > cbg.MaxLength {
12691269+ if uint64(len("i")) > cbg.MaxLength {
12701270 return xerrors.Errorf("Value in field \"i\" was too long")
12711271 }
12721272···12881288 }
1289128912901290 // t.J (bool) (bool)
12911291- if len("j") > cbg.MaxLength {
12911291+ if uint64(len("j")) > cbg.MaxLength {
12921292 return xerrors.Errorf("Value in field \"j\" was too long")
12931293 }
12941294···13041304 }
1305130513061306 // t.K ([]string) (slice)
13071307- if len("k") > cbg.MaxLength {
13071307+ if uint64(len("k")) > cbg.MaxLength {
13081308 return xerrors.Errorf("Value in field \"k\" was too long")
13091309 }
13101310···13151315 return err
13161316 }
1317131713181318- if len(t.K) > cbg.MaxLength {
13181318+ if uint64(len(t.K)) > cbg.MaxLength {
13191319 return xerrors.Errorf("Slice value in field t.K was too long")
13201320 }
13211321···13231323 return err
13241324 }
13251325 for _, v := range t.K {
13261326- if len(v) > cbg.MaxLength {
13261326+ if uint64(len(v)) > cbg.MaxLength {
13271327 return xerrors.Errorf("Value in field v was too long")
13281328 }
13291329···14931493 }
1494149414951495 // t.A (util.LexLink) (struct)
14961496- if len("a") > cbg.MaxLength {
14961496+ if uint64(len("a")) > cbg.MaxLength {
14971497 return xerrors.Errorf("Value in field \"a\" was too long")
14981498 }
14991499···15091509 }
1510151015111511 // t.B (util.LexBytes) (slice)
15121512- if len("b") > cbg.MaxLength {
15121512+ if uint64(len("b")) > cbg.MaxLength {
15131513 return xerrors.Errorf("Value in field \"b\" was too long")
15141514 }
15151515···15201520 return err
15211521 }
1522152215231523- if len(t.B) > cbg.ByteArrayMaxLen {
15231523+ if uint64(len(t.B)) > cbg.ByteArrayMaxLen {
15241524 return xerrors.Errorf("Byte array in field t.B was too long")
15251525 }
15261526···15281528 return err
15291529 }
1530153015311531- if _, err := cw.Write(t.B[:]); err != nil {
15311531+ if _, err := cw.Write(t.B); err != nil {
15321532 return err
15331533 }
15341534···16021602 t.B = make([]uint8, extra)
16031603 }
1604160416051605- if _, err := io.ReadFull(cr, t.B[:]); err != nil {
16051605+ if _, err := io.ReadFull(cr, t.B); err != nil {
16061606 return err
16071607 }
16081608
+10-10
mst/cbor_gen.go
···3131 }
32323333 // t.Entries ([]mst.treeEntry) (slice)
3434- if len("e") > cbg.MaxLength {
3434+ if uint64(len("e")) > cbg.MaxLength {
3535 return xerrors.Errorf("Value in field \"e\" was too long")
3636 }
3737···4242 return err
4343 }
44444545- if len(t.Entries) > cbg.MaxLength {
4545+ if uint64(len(t.Entries)) > cbg.MaxLength {
4646 return xerrors.Errorf("Slice value in field t.Entries was too long")
4747 }
4848···5757 }
58585959 // t.Left (cid.Cid) (struct)
6060- if len("l") > cbg.MaxLength {
6060+ if uint64(len("l")) > cbg.MaxLength {
6161 return xerrors.Errorf("Value in field \"l\" was too long")
6262 }
6363···203203 }
204204205205 // t.KeySuffix ([]uint8) (slice)
206206- if len("k") > cbg.MaxLength {
206206+ if uint64(len("k")) > cbg.MaxLength {
207207 return xerrors.Errorf("Value in field \"k\" was too long")
208208 }
209209···214214 return err
215215 }
216216217217- if len(t.KeySuffix) > cbg.ByteArrayMaxLen {
217217+ if uint64(len(t.KeySuffix)) > cbg.ByteArrayMaxLen {
218218 return xerrors.Errorf("Byte array in field t.KeySuffix was too long")
219219 }
220220···222222 return err
223223 }
224224225225- if _, err := cw.Write(t.KeySuffix[:]); err != nil {
225225+ if _, err := cw.Write(t.KeySuffix); err != nil {
226226 return err
227227 }
228228229229 // t.PrefixLen (int64) (int64)
230230- if len("p") > cbg.MaxLength {
230230+ if uint64(len("p")) > cbg.MaxLength {
231231 return xerrors.Errorf("Value in field \"p\" was too long")
232232 }
233233···249249 }
250250251251 // t.Tree (cid.Cid) (struct)
252252- if len("t") > cbg.MaxLength {
252252+ if uint64(len("t")) > cbg.MaxLength {
253253 return xerrors.Errorf("Value in field \"t\" was too long")
254254 }
255255···271271 }
272272273273 // t.Val (cid.Cid) (struct)
274274- if len("v") > cbg.MaxLength {
274274+ if uint64(len("v")) > cbg.MaxLength {
275275 return xerrors.Errorf("Value in field \"v\" was too long")
276276 }
277277···346346 t.KeySuffix = make([]uint8, extra)
347347 }
348348349349- if _, err := io.ReadFull(cr, t.KeySuffix[:]); err != nil {
349349+ if _, err := io.ReadFull(cr, t.KeySuffix); err != nil {
350350 return err
351351 }
352352
+18-18
repo/cbor_gen.go
···3636 }
37373838 // t.Did (string) (string)
3939- if len("did") > cbg.MaxLength {
3939+ if uint64(len("did")) > cbg.MaxLength {
4040 return xerrors.Errorf("Value in field \"did\" was too long")
4141 }
4242···4747 return err
4848 }
49495050- if len(t.Did) > cbg.MaxLength {
5050+ if uint64(len(t.Did)) > cbg.MaxLength {
5151 return xerrors.Errorf("Value in field t.Did was too long")
5252 }
5353···6161 // t.Rev (string) (string)
6262 if t.Rev != "" {
63636464- if len("rev") > cbg.MaxLength {
6464+ if uint64(len("rev")) > cbg.MaxLength {
6565 return xerrors.Errorf("Value in field \"rev\" was too long")
6666 }
6767···7272 return err
7373 }
74747575- if len(t.Rev) > cbg.MaxLength {
7575+ if uint64(len(t.Rev)) > cbg.MaxLength {
7676 return xerrors.Errorf("Value in field t.Rev was too long")
7777 }
7878···8585 }
86868787 // t.Sig ([]uint8) (slice)
8888- if len("sig") > cbg.MaxLength {
8888+ if uint64(len("sig")) > cbg.MaxLength {
8989 return xerrors.Errorf("Value in field \"sig\" was too long")
9090 }
9191···9696 return err
9797 }
98989999- if len(t.Sig) > cbg.ByteArrayMaxLen {
9999+ if uint64(len(t.Sig)) > cbg.ByteArrayMaxLen {
100100 return xerrors.Errorf("Byte array in field t.Sig was too long")
101101 }
102102···104104 return err
105105 }
106106107107- if _, err := cw.Write(t.Sig[:]); err != nil {
107107+ if _, err := cw.Write(t.Sig); err != nil {
108108 return err
109109 }
110110111111 // t.Data (cid.Cid) (struct)
112112- if len("data") > cbg.MaxLength {
112112+ if uint64(len("data")) > cbg.MaxLength {
113113 return xerrors.Errorf("Value in field \"data\" was too long")
114114 }
115115···125125 }
126126127127 // t.Prev (cid.Cid) (struct)
128128- if len("prev") > cbg.MaxLength {
128128+ if uint64(len("prev")) > cbg.MaxLength {
129129 return xerrors.Errorf("Value in field \"prev\" was too long")
130130 }
131131···147147 }
148148149149 // t.Version (int64) (int64)
150150- if len("version") > cbg.MaxLength {
150150+ if uint64(len("version")) > cbg.MaxLength {
151151 return xerrors.Errorf("Value in field \"version\" was too long")
152152 }
153153···249249 t.Sig = make([]uint8, extra)
250250 }
251251252252- if _, err := io.ReadFull(cr, t.Sig[:]); err != nil {
252252+ if _, err := io.ReadFull(cr, t.Sig); err != nil {
253253 return err
254254 }
255255···342342 }
343343344344 // t.Did (string) (string)
345345- if len("did") > cbg.MaxLength {
345345+ if uint64(len("did")) > cbg.MaxLength {
346346 return xerrors.Errorf("Value in field \"did\" was too long")
347347 }
348348···353353 return err
354354 }
355355356356- if len(t.Did) > cbg.MaxLength {
356356+ if uint64(len(t.Did)) > cbg.MaxLength {
357357 return xerrors.Errorf("Value in field t.Did was too long")
358358 }
359359···367367 // t.Rev (string) (string)
368368 if t.Rev != "" {
369369370370- if len("rev") > cbg.MaxLength {
370370+ if uint64(len("rev")) > cbg.MaxLength {
371371 return xerrors.Errorf("Value in field \"rev\" was too long")
372372 }
373373···378378 return err
379379 }
380380381381- if len(t.Rev) > cbg.MaxLength {
381381+ if uint64(len(t.Rev)) > cbg.MaxLength {
382382 return xerrors.Errorf("Value in field t.Rev was too long")
383383 }
384384···391391 }
392392393393 // t.Data (cid.Cid) (struct)
394394- if len("data") > cbg.MaxLength {
394394+ if uint64(len("data")) > cbg.MaxLength {
395395 return xerrors.Errorf("Value in field \"data\" was too long")
396396 }
397397···407407 }
408408409409 // t.Prev (cid.Cid) (struct)
410410- if len("prev") > cbg.MaxLength {
410410+ if uint64(len("prev")) > cbg.MaxLength {
411411 return xerrors.Errorf("Value in field \"prev\" was too long")
412412 }
413413···429429 }
430430431431 // t.Version (int64) (int64)
432432- if len("version") > cbg.MaxLength {
432432+ if uint64(len("version")) > cbg.MaxLength {
433433 return xerrors.Errorf("Value in field \"version\" was too long")
434434 }
435435