Home

cuesonnet @ad92adf766ccabb211e2344123f01dcf37636f22 - refs - log -
-
https://git.jolheiser.com/cuesonnet.git
CUE + Jsonnet
cuesonnet / testdata / structs / nested / schema.cue
- raw -
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#Address: {
	street: string
	city:   string
	zip:    =~"^[0-9]{5}$"
}

#Contact: {
	label: string
	value: string
}

#Schema: {
	name:     string
	address:  #Address
	contacts: [...#Contact]
}
#Schema