Skip to content

Commit 3c35167

Browse files
committed
Fix minor bug not deserializing a full-value in Paths#UnmarshalNextJSON
1 parent 172d655 commit 3c35167

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pkg/validation/spec/paths.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,11 @@ func (p *Paths) UnmarshalNextJSON(opts jsonv2.UnmarshalOptions, dec *jsonv2.Deco
113113
}
114114
p.Paths[k] = pi
115115
default:
116-
_, err := dec.ReadValue() // skip value
117-
return err
116+
v, err := dec.ReadValue() // skip value
117+
fmt.Println("read value:", v)
118+
if err != nil {
119+
return err
120+
}
118121
}
119122
}
120123
default:

0 commit comments

Comments
 (0)