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
+2 -3
View File
@@ -18,7 +18,6 @@ import (
queuemock "queryorchestration/mocks/queue"
"github.com/aws/aws-sdk-go-v2/service/sqs"
"github.com/go-playground/validator/v10"
"github.com/google/uuid"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
@@ -68,7 +67,7 @@ func TestSetCollector(t *testing.T) {
rec := httptest.NewRecorder()
ctx := e.NewContext(req, rec)
cons := queryapi.NewControllers(validator.New(), &queryapi.Services{
cons := queryapi.NewControllers(&queryapi.Services{
CollectorSet: collectorset.New(cfg, &collectorset.Services{
Collector: collector.New(cfg),
}),
@@ -134,7 +133,7 @@ func TestGetCollectorByclientId(t *testing.T) {
ctx := e.NewContext(req, rec)
svc := collector.New(cfg)
cons := queryapi.NewControllers(validator.New(), &queryapi.Services{
cons := queryapi.NewControllers(&queryapi.Services{
Collector: svc,
})