diff --git a/bundle/internal/schema/main.go b/bundle/internal/schema/main.go index 1840fc351..463c3fe3a 100644 --- a/bundle/internal/schema/main.go +++ b/bundle/internal/schema/main.go @@ -139,7 +139,10 @@ func generateSchema(workdir, outputFile string) { log.Fatal(err) } fmt.Printf("Writing OpenAPI annotations to %s\n", annotationsOpenApiPath) - p.extractAnnotations(reflect.TypeOf(config.Root{}), annotationsOpenApiPath, annotationsOpenApiOverridesPath) + err = p.extractAnnotations(reflect.TypeOf(config.Root{}), annotationsOpenApiPath, annotationsOpenApiOverridesPath) + if err != nil { + log.Fatal(err) + } } a, err := newAnnotationHandler([]string{annotationsOpenApiPath, annotationsOpenApiOverridesPath, annotationsPath})