blob: 3baedfa5df5617715a46ab7704f1ca3bd3e3e7d9 [file] [log] [blame]
-- in.cue --
#Schema: {
...
}
Component: {
hostname: string | *"localhost"
_#foo: {
hello: "world"
}
}
hello: #Schema & Component
-- out/eval --
(struct){
#Schema: (#struct){
}
Component: (struct){
hostname: (string){ |(*(string){ "localhost" }, (string){ string }) }
_#foo: (#struct){
hello: (string){ "world" }
}
}
hello: (#struct){
hostname: (string){ |(*(string){ "localhost" }, (string){ string }) }
_#foo: (#struct){
hello: (string){ "world" }
}
}
}
-- out/compile --
--- in.cue
{
#Schema: {
...
}
Component: {
hostname: (string|*"localhost")
_#foo: {
hello: "world"
}
}
hello: (〈0;#Schema & 0;Component〉)
}