···71847184 }
7185718571867186 cw := cbg.NewCborWriter(w)
71877187- fieldCount := 7
71877187+ fieldCount := 8
7188718871897189 if t.Description == nil {
71907190 fieldCount--
71917191 }
7192719271937193 if t.Source == nil {
71947194+ fieldCount--
71957195+ }
71967196+71977197+ if t.Spindle == nil {
71947198 fieldCount--
71957199 }
71967200···73187322 }
73197323 }
7320732473257325+ // t.Spindle (string) (string)
73267326+ if t.Spindle != nil {
73277327+73287328+ if len("spindle") > 1000000 {
73297329+ return xerrors.Errorf("Value in field \"spindle\" was too long")
73307330+ }
73317331+73327332+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("spindle"))); err != nil {
73337333+ return err
73347334+ }
73357335+ if _, err := cw.WriteString(string("spindle")); err != nil {
73367336+ return err
73377337+ }
73387338+73397339+ if t.Spindle == nil {
73407340+ if _, err := cw.Write(cbg.CborNull); err != nil {
73417341+ return err
73427342+ }
73437343+ } else {
73447344+ if len(*t.Spindle) > 1000000 {
73457345+ return xerrors.Errorf("Value in field t.Spindle was too long")
73467346+ }
73477347+73487348+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(*t.Spindle))); err != nil {
73497349+ return err
73507350+ }
73517351+ if _, err := cw.WriteString(string(*t.Spindle)); err != nil {
73527352+ return err
73537353+ }
73547354+ }
73557355+ }
73567356+73217357 // t.CreatedAt (string) (string)
73227358 if len("createdAt") > 1000000 {
73237359 return xerrors.Errorf("Value in field \"createdAt\" was too long")
···74817517 t.Source = (*string)(&sval)
74827518 }
74837519 }
75207520+ // t.Spindle (string) (string)
75217521+ case "spindle":
75227522+75237523+ {
75247524+ b, err := cr.ReadByte()
75257525+ if err != nil {
75267526+ return err
75277527+ }
75287528+ if b != cbg.CborNull[0] {
75297529+ if err := cr.UnreadByte(); err != nil {
75307530+ return err
75317531+ }
75327532+75337533+ sval, err := cbg.ReadStringWithMax(cr, 1000000)
75347534+ if err != nil {
75357535+ return err
75367536+ }
75377537+75387538+ t.Spindle = (*string)(&sval)
75397539+ }
75407540+ }
74847541 // t.CreatedAt (string) (string)
74857542 case "createdAt":
74867543···75317588 }
7532758975337590 cw := cbg.NewCborWriter(w)
75347534- fieldCount := 4
7535759175367536- if t.Instance == nil {
75377537- fieldCount--
75387538- }
75397539-75407540- if _, err := cw.Write(cbg.CborEncodeMajorType(cbg.MajMap, uint64(fieldCount))); err != nil {
75927592+ if _, err := cw.Write([]byte{164}); err != nil {
75417593 return err
75427594 }
75437595···75847636 }
7585763775867638 // t.Instance (string) (string)
75877587- if t.Instance != nil {
76397639+ if len("instance") > 1000000 {
76407640+ return xerrors.Errorf("Value in field \"instance\" was too long")
76417641+ }
7588764275897589- if len("instance") > 1000000 {
75907590- return xerrors.Errorf("Value in field \"instance\" was too long")
75917591- }
76437643+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("instance"))); err != nil {
76447644+ return err
76457645+ }
76467646+ if _, err := cw.WriteString(string("instance")); err != nil {
76477647+ return err
76487648+ }
7592764975937593- if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("instance"))); err != nil {
75947594- return err
75957595- }
75967596- if _, err := cw.WriteString(string("instance")); err != nil {
75977597- return err
75987598- }
76507650+ if len(t.Instance) > 1000000 {
76517651+ return xerrors.Errorf("Value in field t.Instance was too long")
76527652+ }
7599765376007600- if t.Instance == nil {
76017601- if _, err := cw.Write(cbg.CborNull); err != nil {
76027602- return err
76037603- }
76047604- } else {
76057605- if len(*t.Instance) > 1000000 {
76067606- return xerrors.Errorf("Value in field t.Instance was too long")
76077607- }
76087608-76097609- if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(*t.Instance))); err != nil {
76107610- return err
76117611- }
76127612- if _, err := cw.WriteString(string(*t.Instance)); err != nil {
76137613- return err
76147614- }
76157615- }
76547654+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(t.Instance))); err != nil {
76557655+ return err
76567656+ }
76577657+ if _, err := cw.WriteString(string(t.Instance)); err != nil {
76587658+ return err
76167659 }
7617766076187661 // t.CreatedAt (string) (string)
···77077750 case "instance":
7708775177097752 {
77107710- b, err := cr.ReadByte()
77537753+ sval, err := cbg.ReadStringWithMax(cr, 1000000)
77117754 if err != nil {
77127755 return err
77137756 }
77147714- if b != cbg.CborNull[0] {
77157715- if err := cr.UnreadByte(); err != nil {
77167716- return err
77177717- }
7718775777197719- sval, err := cbg.ReadStringWithMax(cr, 1000000)
77207720- if err != nil {
77217721- return err
77227722- }
77237723-77247724- t.Instance = (*string)(&sval)
77257725- }
77587758+ t.Instance = string(sval)
77267759 }
77277760 // t.CreatedAt (string) (string)
77287761 case "createdAt":
+2-2
api/tangled/spindlemember.go
···2020 LexiconTypeID string `json:"$type,const=sh.tangled.spindle.member" cborgen:"$type,const=sh.tangled.spindle.member"`
2121 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
2222 // instance: spindle instance that the subject is now a member of
2323- Instance *string `json:"instance,omitempty" cborgen:"instance,omitempty"`
2424- Subject string `json:"subject" cborgen:"subject"`
2323+ Instance string `json:"instance" cborgen:"instance"`
2424+ Subject string `json:"subject" cborgen:"subject"`
2525}
+2
api/tangled/tangledrepo.go
···2727 Owner string `json:"owner" cborgen:"owner"`
2828 // source: source of the repo
2929 Source *string `json:"source,omitempty" cborgen:"source,omitempty"`
3030+ // spindle: CI runner to send jobs to and receive results from
3131+ Spindle *string `json:"spindle,omitempty" cborgen:"spindle,omitempty"`
3032}
+4
lexicons/repo.json
···2828 "type": "string",
2929 "description": "knot where the repo was created"
3030 },
3131+ "spindle": {
3232+ "type": "string",
3333+ "description": "CI runner to send jobs to and receive results from"
3434+ },
3135 "description": {
3236 "type": "string",
3337 "format": "datetime",