From ba3d0da842392746ee7003ab52a7a74f7981f014 Mon Sep 17 00:00:00 2001 From: Simon Murray Date: Wed, 7 Feb 2024 16:34:03 +0000 Subject: [PATCH] Fix Docs Validator Use the option rather than a hard coded path! --- charts/core/Chart.yaml | 4 ++-- hack/docs/main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/core/Chart.yaml b/charts/core/Chart.yaml index cad0a58..24071ab 100644 --- a/charts/core/Chart.yaml +++ b/charts/core/Chart.yaml @@ -4,7 +4,7 @@ description: A Helm chart for deploying Unikorn Core type: application -version: v0.1.1 -appVersion: v0.1.1 +version: v0.1.2 +appVersion: v0.1.2 icon: https://assets.unikorn-cloud.org/images/logos/dark-on-light/icon.svg diff --git a/hack/docs/main.go b/hack/docs/main.go index 4900653..2e1cbb7 100644 --- a/hack/docs/main.go +++ b/hack/docs/main.go @@ -631,7 +631,7 @@ func (o *options) run() error { // Load in the OpenAPI schema. loader := openapi3.NewLoader() - doc, err := loader.LoadFromFile("pkg/server/openapi/server.spec.yaml") + doc, err := loader.LoadFromFile(o.openapiSchema) if err != nil { return err }