blob: e76ca8e08eb76a9365642a686d5ac49f66f88c0e [file] [log] [blame]
-- list.yaml --
type: object
properties:
foo:
items:
type: string
tuple:
items:
- type: string
- type: integer
- const: 2
has:
contains:
const: 3
size:
minItems: 3
maxItems: 9
uniqueItems: true
additionalProperties: false
-- out.cue --
import "list"
Schema :: {
foo?: [...string]
tuple?: [string, int, 2]
has?: list.Contains(3)
size?: list.MinItems(3) & list.MaxItems(9) & list.UniqueItems()
}