diff --git a/api/generate.go b/api/generate.go index 5c3f5469d55..3a19c017de9 100644 --- a/api/generate.go +++ b/api/generate.go @@ -87,6 +87,10 @@ func Generate(cfg *config.Config, option ...Option) error { } } + if err = codegen.GenerateCode(data); err != nil { + return errors.Wrap(err, "generating core failed") + } + if !cfg.SkipValidation { if err := validate(cfg); err != nil { return errors.Wrap(err, "validation failed")