blob: 42779aa6a84dee4ca4cb7d94f3ded8e03818ef54 [file] [log] [blame]
-- in.cue --
deployment: [string]: #Deployment
deployment: foo: spec: replicas: 1
#Deployment: {
#TypeMeta
spec: #Spec
}
#Spec: replicas: int
#TypeMeta: {}
-- out/eval --
(struct){
deployment: (struct){
foo: (#struct){
spec: (#struct){
replicas: (int){ 1 }
}
}
}
#Deployment: (#struct){
spec: (#struct){
replicas: (int){ int }
}
}
#Spec: (#struct){
replicas: (int){ int }
}
#TypeMeta: (#struct){
}
}
-- out/compile --
--- in.cue
{
deployment: {
[string]: 1;#Deployment
}
deployment: {
foo: {
spec: {
replicas: 1
}
}
}
#Deployment: {
1;#TypeMeta
spec: 1;#Spec
}
#Spec: {
replicas: int
}
#TypeMeta: {}
}