blob: 9b26d24f6e53217884742ea622d185e141c5ceb3 [file] [log] [blame]
-- in.cue --
e: #Example
e: a: "hello"
#Example: {
a: string
{
value?: string
} | {
externalValue?: string
}
}
-- out/eval --
(struct){
e: (struct){ |((#struct){
a: (string){ "hello" }
}, (#struct){
a: (string){ "hello" }
}) }
#Example: (struct){ |((#struct){
a: (string){ string }
}, (#struct){
a: (string){ string }
}) }
}
-- out/compile --
--- in.cue
{
e: 0;#Example
e: {
a: "hello"
}
#Example: {
a: string
({
value?: string
}|{
externalValue?: string
})
}
}