Merged in feature/openapifixes (pull request #106)

OpenAPI Middleware & Fixes

* updates
This commit is contained in:
Michael McGuinness
2025-03-18 13:06:42 +00:00
parent 555b6d420b
commit 3dd0c718cd
56 changed files with 8577 additions and 122 deletions
+3 -4
View File
@@ -14,7 +14,6 @@ import (
"queryorchestration/internal/database/repository"
"queryorchestration/internal/serviceconfig"
"github.com/go-playground/validator/v10"
"github.com/google/uuid"
"github.com/labstack/echo/v4"
"github.com/pashagolub/pgxmock/v3"
@@ -30,7 +29,7 @@ func TestCreateClient(t *testing.T) {
cfg.DBPool = pool
cfg.DBQueries = repository.New(pool)
cons := queryapi.NewControllers(validator.New(), &queryapi.Services{
cons := queryapi.NewControllers(&queryapi.Services{
Client: client.New(cfg),
})
@@ -66,7 +65,7 @@ func TestGetClient(t *testing.T) {
cfg.DBPool = pool
cfg.DBQueries = repository.New(pool)
cons := queryapi.NewControllers(validator.New(), &queryapi.Services{
cons := queryapi.NewControllers(&queryapi.Services{
Client: client.New(cfg),
})
@@ -108,7 +107,7 @@ func TestUpdateClient(t *testing.T) {
cfg.DBPool = pool
cfg.DBQueries = repository.New(pool)
cons := queryapi.NewControllers(validator.New(), &queryapi.Services{
cons := queryapi.NewControllers(&queryapi.Services{
Client: client.New(cfg),
})