From efb9e5d9d5d0142c24facd71efcaeea65ab6ca43 Mon Sep 17 00:00:00 2001 From: Hein Date: Wed, 10 Dec 2025 12:15:18 +0200 Subject: [PATCH] Removed the buggy filter expand columns --- pkg/restheadspec/handler.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/restheadspec/handler.go b/pkg/restheadspec/handler.go index 4295189..d0a5cbe 100644 --- a/pkg/restheadspec/handler.go +++ b/pkg/restheadspec/handler.go @@ -2266,14 +2266,14 @@ func filterExtendedOptions(validator *common.ColumnValidator, options ExtendedRe filtered.ComputedQL = options.ComputedQL // Filter Expand columns - filteredExpands := make([]ExpandOption, 0, len(options.Expand)) - for _, expand := range options.Expand { - filteredExpand := expand - // Don't validate relation name, only columns - filteredExpand.Columns = validator.FilterValidColumns(expand.Columns) - filteredExpands = append(filteredExpands, filteredExpand) - } - filtered.Expand = filteredExpands + // filteredExpands := make([]ExpandOption, 0, len(options.Expand)) + // for _, expand := range options.Expand { + // filteredExpand := expand + // // Don't validate relation name, only columns + // filteredExpand.Columns = validator.FilterValidColumns(expand.Columns) + // filteredExpands = append(filteredExpands, filteredExpand) + // } + // filtered.Expand = filteredExpands return filtered }