-- test.cue --
package test
t1?: int
t2?: float
t3?: number
t4?: string
t5?: bool
t6?: string | int
t7?: bytes
t8?: null
-- datatest/tests.cue --
package datatest

ok: data: {
	t1: 1
	t2: 1.2
	t3: 1.3
	t4: "foo"
	t5: true
	t6: "bar"
	t7: 'something'
}
-- out/generate-v3/schema --
{
	$schema: "https://json-schema.org/draft/2020-12/schema"
	type:    "object"
	properties: {
		t1: {
			type: "integer"
		}
		t2: {
			type: "number"
		}
		t3: {
			type: "number"
		}
		t4: {
			type: "string"
		}
		t5: {
			type: "boolean"
		}
		t6: {
			anyOf: [{
				type: "string"
			}, {
				type: "integer"
			}]
		}
		t7: true
		t8: {
			type: "null"
		}
	}
}
-- out/generate-v3/ok --
