From b09aa3eba7291220621f342bd91fbdcbfbe267db Mon Sep 17 00:00:00 2001 From: Prashansa Kulshrestha Date: Mon, 21 Oct 2024 18:25:34 +0530 Subject: [PATCH] feat: added validation for vault entities. (#1421) Online validation via deck gateway validate now supports validating vaults as well. --- validate/validate.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/validate/validate.go b/validate/validate.go index fe15ad100..256b33718 100644 --- a/validate/validate.go +++ b/validate/validate.go @@ -181,6 +181,9 @@ func (v *Validator) Validate(formatVersion semver.Version) []error { if err := v.entities(v.state.FilterChains, "filter_chains"); err != nil { allErr = append(allErr, err...) } + if err := v.entities(v.state.Vaults, "vaults"); err != nil { + allErr = append(allErr, err...) + } // validate routes format with Kong 3.x parsed30, err := semver.ParseTolerant(utils.FormatVersion30)