From 4554ec426685d9d45238f0ccd51a903448de3fbf Mon Sep 17 00:00:00 2001 From: Wes Date: Tue, 6 Feb 2024 14:08:21 -0700 Subject: [PATCH] fix: use correct dataref for json schema --- backend/controller/console.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/backend/controller/console.go b/backend/controller/console.go index f34c4563f8..5a6fadcb54 100644 --- a/backend/controller/console.go +++ b/backend/controller/console.go @@ -67,11 +67,7 @@ func (c *ConsoleService) GetModules(ctx context.Context, req *connect.Request[pb if !ok { return nil, fmt.Errorf("expected request to be a data ref, got %T", verbSchema.Request) } - dataRef := schema.DataRef{ - Module: requestData.Module, - Name: requestData.Name, - } - jsonRequestSchema, err := schema.DataToJSONSchema(sch, dataRef) + jsonRequestSchema, err := schema.DataToJSONSchema(sch, *requestData) if err != nil { return nil, err }