Home

cuesonnet @b55d8f76ac5a85758c2085c0c7feefca6dc4b9cf - refs - log -
-
https://git.jolheiser.com/cuesonnet.git
CUE + Jsonnet
cuesonnet / testdata / lists / schema.cue
- raw -
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
import "list"

#Item: {
	id:    int & >0
	label: string
}

#Schema: {
	items:   [...#Item]
	tags:    [...string]
	counts:  [...int & >=0]
	limited: list.MinItems(1) & list.MaxItems(5) & [...string]
}
#Schema