include hidden fields in concreteness check

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-12-01 17:56:31 -08:00
parent 337ed0d1cc
commit a25e6bb3a2

View File

@ -156,7 +156,10 @@ func (v *Value) IsConcrete() bool {
// Recursive concreteness check.
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...)
return v.val.Validate(o...)
}