include hidden fields in concreteness check
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
337ed0d1cc
commit
a25e6bb3a2
@ -156,7 +156,10 @@ func (v *Value) IsConcrete() bool {
|
|||||||
|
|
||||||
// Recursive concreteness check.
|
// Recursive concreteness check.
|
||||||
func (v *Value) IsConcreteR(opts ...cue.Option) error {
|
func (v *Value) IsConcreteR(opts ...cue.Option) error {
|
||||||
o := []cue.Option{cue.Concrete(true)}
|
o := []cue.Option{
|
||||||
|
cue.Concrete(true),
|
||||||
|
cue.Hidden(true),
|
||||||
|
}
|
||||||
o = append(o, opts...)
|
o = append(o, opts...)
|
||||||
return v.val.Validate(o...)
|
return v.val.Validate(o...)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user