From 142b039c87841174335777fb25ec355ffe4d42e0 Mon Sep 17 00:00:00 2001 From: Jonathan Victor Goklas Date: Fri, 31 May 2024 11:11:37 +0700 Subject: [PATCH] fix error --- api/api/api_test.go | 5 +++++ api/config/config.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/api/api/api_test.go b/api/api/api_test.go index 3037b1a8..71d9c150 100644 --- a/api/api/api_test.go +++ b/api/api/api_test.go @@ -58,6 +58,11 @@ func (s *APITestSuite) SetupTest() { Mlflow: &config.MlflowConfig{ TrackingURL: "http://mlflow:5000", }, + UpdateProject: &config.UpdateProjectConfig{ + Endpoint: "", + PayloadTemplate: "template-payload", + ResponseTemplate: "template-response", + }, DefaultSecretStorage: &config.SecretStorage{ Name: "vault", Type: string(models.VaultSecretStorageType), diff --git a/api/config/config.go b/api/config/config.go index e319c801..4d4e91a3 100644 --- a/api/config/config.go +++ b/api/config/config.go @@ -123,7 +123,7 @@ type UIConfig struct { } type UpdateProjectConfig struct { - Endpoint string `validate:"url"` + Endpoint string PayloadTemplate string ResponseTemplate string LabelsBlacklist []string