# Issue #969 (CUE)

! exec hof eval test.json -d '#D2'
cmp stderr expect-stderr1

! exec hof eval test.json vector.cue -d '#D1'
cmp stderr expect-stderr2

! exec hof eval test.json vector.cue -d '#D2'
cmp stderr expect-stderr3

-- test.json --
{
  "X": 1,
  "Y": 2,
  "Z": 3
}
-- vector.cue --
package Vector

#D2: {
    X: float
    Y: float
}

#D3: {
    X: float
    Y: float
    Z: float
}

-- expect-stderr1 --
unable to find schema in value: field not found: #D2
-- expect-stderr2 --
unable to find schema in value: field not found: #D1
-- expect-stderr3 --
X: conflicting values 1 and float (mismatched types int and float):
    ./test.json:2:8
    ./vector.cue:4:8
Y: conflicting values 2 and float (mismatched types int and float):
    ./test.json:3:8
    ./vector.cue:5:8
Z: field not allowed:
    ./test.json:4:3
    ./vector.cue:1:1
    ./vector.cue:3:6
