Skip to content

Commit e22ea96

Browse files
committed
internal/core/adt: add missing dereference
This affects some OpenAPI tests. Fixes #3847 Fixes #3825 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I570abc76e392546a45735bacb721cb99755cbda4 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1212215 Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Matthew Sackman <[email protected]>
1 parent ff654dc commit e22ea96

File tree

4 files changed

+1
-3
lines changed

4 files changed

+1
-3
lines changed

encoding/openapi/testdata/embed-norefs.txtar

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#ExpandReferences
2-
#skip-v3
32
-- in.cue --
43
#Foo: string
54

encoding/openapi/testdata/struct.txtar

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#skip-v3
21
-- in.cue --
32
import "struct"
43

encoding/openapi/testdata/structural.txtar

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#ExpandReferences
2-
#skip-v3
32
-- in.cue --
43
import "time"
54

internal/core/adt/composite.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@ func (v *Vertex) IsData() bool {
760760
// of this vertex. Arcs are left untouched.
761761
// It is used by cue.Eval to convert nodes to data on per-node basis.
762762
func (v *Vertex) ToDataSingle() *Vertex {
763+
v = v.DerefValue()
763764
w := *v
764765
w.isData = true
765766
w.state = nil

0 commit comments

Comments
 (0)