Home

cuesonnet @d4e065f283c1c921c715a3050c07a6bee488ebd2 - refs - log -
-
https://git.jolheiser.com/cuesonnet.git
CUE + Jsonnet
cuesonnet / testdata / structs / any / schema.cue
- raw -
1
2
3
4
5
6
7
8
9
// Fields typed as _ accept any concrete value while the rest of the
// definition stays closed. This is the correct escape hatch — using ...
// does not work because cue.Final() closes all open structs at validation time.
#Schema: {
	name:         string
	metadata:     _   // required; any concrete value accepted
	annotations?: _   // optional; any concrete value accepted
}
#Schema