1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.label.definition
6
7import (
8 "github.com/bluesky-social/indigo/lex/util"
9)
10
11const (
12 LabelDefinitionNSID = "sh.tangled.label.definition"
13)
14
15func init() {
16 util.RegisterType("sh.tangled.label.definition", &LabelDefinition{})
17} //
18// RECORDTYPE: LabelDefinition
19type LabelDefinition struct {
20 LexiconTypeID string `json:"$type,const=sh.tangled.label.definition" cborgen:"$type,const=sh.tangled.label.definition"`
21 // color: The hex value for the background color for the label. Appviews may choose to respect this.
22 Color *string `json:"color,omitempty" cborgen:"color,omitempty"`
23 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
24 // multiple: Whether this label can be repeated for a given entity, eg.: [reviewer:foo, reviewer:bar]
25 Multiple *bool `json:"multiple,omitempty" cborgen:"multiple,omitempty"`
26 // name: The display name of this label.
27 Name string `json:"name" cborgen:"name"`
28 // scope: The areas of the repo this label may apply to, eg.: sh.tangled.repo.issue. Appviews may choose to respect this.
29 Scope []string `json:"scope" cborgen:"scope"`
30 // valueType: The type definition of this label. Appviews may allow sorting for certain types.
31 ValueType *LabelDefinition_ValueType `json:"valueType" cborgen:"valueType"`
32}
33
34// LabelDefinition_ValueType is a "valueType" in the sh.tangled.label.definition schema.
35type LabelDefinition_ValueType struct {
36 // enum: Closed set of values that this label can take.
37 Enum []string `json:"enum,omitempty" cborgen:"enum,omitempty"`
38 // format: An optional constraint that can be applied on string concrete types.
39 Format string `json:"format" cborgen:"format"`
40 // type: The concrete type of this label's value.
41 Type string `json:"type" cborgen:"type"`
42}