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