Home

cuesonnet @d4e065f283c1c921c715a3050c07a6bee488ebd2 - 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