Home

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