Home

cuesonnet @main - refs - log -
-
https://git.jolheiser.com/cuesonnet.git
CUE + Jsonnet
cuesonnet / testdata / disjunctions / schema.cue
- raw -
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#Schema: {
	// Tagged union: string, int, or bool
	value: string | int | bool

	// String enum (disjunction of literals)
	mode: "read" | "write" | "readwrite"

	// Integer enum
	priority: 1 | 2 | 3

	// Nullable field
	nullable: string | null
}
#Schema