···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: sh.tangled.label.definition
66+77+import (
88+ "github.com/bluesky-social/indigo/lex/util"
99+)
1010+1111+const (
1212+ LabelDefinitionNSID = "sh.tangled.label.definition"
1313+)
1414+1515+func init() {
1616+ util.RegisterType("sh.tangled.label.definition", &LabelDefinition{})
1717+} //
1818+// RECORDTYPE: LabelDefinition
1919+type LabelDefinition struct {
2020+ LexiconTypeID string `json:"$type,const=sh.tangled.label.definition" cborgen:"$type,const=sh.tangled.label.definition"`
2121+ // color: The hex value for the background color for the label. Appviews may choose to respect this.
2222+ Color *string `json:"color,omitempty" cborgen:"color,omitempty"`
2323+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
2424+ // multiple: Whether this label can be repeated for a given entity, eg.: [reviewer:foo, reviewer:bar]
2525+ Multiple *bool `json:"multiple,omitempty" cborgen:"multiple,omitempty"`
2626+ // name: The display name of this label.
2727+ Name string `json:"name" cborgen:"name"`
2828+ // scope: The areas of the repo this label may apply to, eg.: sh.tangled.repo.issue. Appviews may choose to respect this.
2929+ Scope []string `json:"scope" cborgen:"scope"`
3030+ // valueType: The type definition of this label. Appviews may allow sorting for certain types.
3131+ ValueType *LabelDefinition_ValueType `json:"valueType" cborgen:"valueType"`
3232+}
3333+3434+// LabelDefinition_ValueType is a "valueType" in the sh.tangled.label.definition schema.
3535+type LabelDefinition_ValueType struct {
3636+ // enum: Closed set of values that this label can take.
3737+ Enum []string `json:"enum,omitempty" cborgen:"enum,omitempty"`
3838+ // format: An optional constraint that can be applied on string concrete types.
3939+ Format string `json:"format" cborgen:"format"`
4040+ // type: The concrete type of this label's value.
4141+ Type string `json:"type" cborgen:"type"`
4242+}