···69676967 }
6968696869696969 cw := cbg.NewCborWriter(w)
69706970- fieldCount := 7
69706970+ fieldCount := 8
6971697169726972 if t.Description == nil {
69736973 fieldCount--
69746974 }
6975697569766976 if t.Source == nil {
69776977+ fieldCount--
69786978+ }
69796979+69806980+ if t.Spindle == nil {
69776981 fieldCount--
69786982 }
69796983···71017105 }
71027106 }
7103710771087108+ // t.Spindle (string) (string)
71097109+ if t.Spindle != nil {
71107110+71117111+ if len("spindle") > 1000000 {
71127112+ return xerrors.Errorf("Value in field \"spindle\" was too long")
71137113+ }
71147114+71157115+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("spindle"))); err != nil {
71167116+ return err
71177117+ }
71187118+ if _, err := cw.WriteString(string("spindle")); err != nil {
71197119+ return err
71207120+ }
71217121+71227122+ if t.Spindle == nil {
71237123+ if _, err := cw.Write(cbg.CborNull); err != nil {
71247124+ return err
71257125+ }
71267126+ } else {
71277127+ if len(*t.Spindle) > 1000000 {
71287128+ return xerrors.Errorf("Value in field t.Spindle was too long")
71297129+ }
71307130+71317131+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(*t.Spindle))); err != nil {
71327132+ return err
71337133+ }
71347134+ if _, err := cw.WriteString(string(*t.Spindle)); err != nil {
71357135+ return err
71367136+ }
71377137+ }
71387138+ }
71397139+71047140 // t.CreatedAt (string) (string)
71057141 if len("createdAt") > 1000000 {
71067142 return xerrors.Errorf("Value in field \"createdAt\" was too long")
···72647300 t.Source = (*string)(&sval)
72657301 }
72667302 }
73037303+ // t.Spindle (string) (string)
73047304+ case "spindle":
73057305+73067306+ {
73077307+ b, err := cr.ReadByte()
73087308+ if err != nil {
73097309+ return err
73107310+ }
73117311+ if b != cbg.CborNull[0] {
73127312+ if err := cr.UnreadByte(); err != nil {
73137313+ return err
73147314+ }
73157315+73167316+ sval, err := cbg.ReadStringWithMax(cr, 1000000)
73177317+ if err != nil {
73187318+ return err
73197319+ }
73207320+73217321+ t.Spindle = (*string)(&sval)
73227322+ }
73237323+ }
72677324 // t.CreatedAt (string) (string)
72687325 case "createdAt":
72697326···73147371 }
7315737273167373 cw := cbg.NewCborWriter(w)
73177317- fieldCount := 4
7318737473197319- if t.Instance == nil {
73207320- fieldCount--
73217321- }
73227322-73237323- if _, err := cw.Write(cbg.CborEncodeMajorType(cbg.MajMap, uint64(fieldCount))); err != nil {
73757375+ if _, err := cw.Write([]byte{164}); err != nil {
73247376 return err
73257377 }
73267378···73677419 }
7368742073697421 // t.Instance (string) (string)
73707370- if t.Instance != nil {
74227422+ if len("instance") > 1000000 {
74237423+ return xerrors.Errorf("Value in field \"instance\" was too long")
74247424+ }
7371742573727372- if len("instance") > 1000000 {
73737373- return xerrors.Errorf("Value in field \"instance\" was too long")
73747374- }
74267426+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("instance"))); err != nil {
74277427+ return err
74287428+ }
74297429+ if _, err := cw.WriteString(string("instance")); err != nil {
74307430+ return err
74317431+ }
7375743273767376- if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("instance"))); err != nil {
73777377- return err
73787378- }
73797379- if _, err := cw.WriteString(string("instance")); err != nil {
73807380- return err
73817381- }
74337433+ if len(t.Instance) > 1000000 {
74347434+ return xerrors.Errorf("Value in field t.Instance was too long")
74357435+ }
7382743673837383- if t.Instance == nil {
73847384- if _, err := cw.Write(cbg.CborNull); err != nil {
73857385- return err
73867386- }
73877387- } else {
73887388- if len(*t.Instance) > 1000000 {
73897389- return xerrors.Errorf("Value in field t.Instance was too long")
73907390- }
73917391-73927392- if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(*t.Instance))); err != nil {
73937393- return err
73947394- }
73957395- if _, err := cw.WriteString(string(*t.Instance)); err != nil {
73967396- return err
73977397- }
73987398- }
74377437+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(t.Instance))); err != nil {
74387438+ return err
74397439+ }
74407440+ if _, err := cw.WriteString(string(t.Instance)); err != nil {
74417441+ return err
73997442 }
7400744374017444 // t.CreatedAt (string) (string)
···74907533 case "instance":
7491753474927535 {
74937493- b, err := cr.ReadByte()
75367536+ sval, err := cbg.ReadStringWithMax(cr, 1000000)
74947537 if err != nil {
74957538 return err
74967539 }
74977497- if b != cbg.CborNull[0] {
74987498- if err := cr.UnreadByte(); err != nil {
74997499- return err
75007500- }
7501754075027502- sval, err := cbg.ReadStringWithMax(cr, 1000000)
75037503- if err != nil {
75047504- return err
75057505- }
75067506-75077507- t.Instance = (*string)(&sval)
75087508- }
75417541+ t.Instance = string(sval)
75097542 }
75107543 // t.CreatedAt (string) (string)
75117544 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",