From 4ff9635680a39e3ada1df1dd6d3ab3e6c3135f1f Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 13 Mar 2020 10:55:41 +1100 Subject: [PATCH] revert #1079 --- api/generate.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/generate.go b/api/generate.go index 5c3f5469d5..3a19c017de 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")