From f120c99ba7d5f66e47af7f5866c561afd1fcc7da Mon Sep 17 00:00:00 2001 From: Dhiraj Bokde Date: Wed, 22 Jan 2025 07:07:42 -0800 Subject: [PATCH] remove unused import Signed-off-by: Dhiraj Bokde --- scripts/gen_openapi_server.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/gen_openapi_server.sh b/scripts/gen_openapi_server.sh index bd4e6383..eb1367e0 100755 --- a/scripts/gen_openapi_server.sh +++ b/scripts/gen_openapi_server.sh @@ -17,11 +17,15 @@ if [[ $(uname) == "Darwin" ]]; then sed -i '' 's/, sortOrderParam/, model.SortOrder(sortOrderParam)/g' "$PROJECT_ROOT"/internal/server/openapi/api_model_registry_service.go sed -i '' 's/, orderByParam/, model.OrderByField(orderByParam)/g' "$PROJECT_ROOT"/internal/server/openapi/api_model_catalog_service.go sed -i '' 's/, sortOrderParam/, model.SortOrder(sortOrderParam)/g' "$PROJECT_ROOT"/internal/server/openapi/api_model_catalog_service.go + # remove unused import + sed -i '' '/encoding\/json/d' "$PROJECT_ROOT"/internal/server/openapi/api_model_catalog_service.go else sed -i 's/, orderByParam/, model.OrderByField(orderByParam)/g' "$PROJECT_ROOT"/internal/server/openapi/api_model_registry_service.go sed -i 's/, sortOrderParam/, model.SortOrder(sortOrderParam)/g' "$PROJECT_ROOT"/internal/server/openapi/api_model_registry_service.go sed -i 's/, orderByParam/, model.OrderByField(orderByParam)/g' "$PROJECT_ROOT"/internal/server/openapi/api_model_catalog_service.go sed -i 's/, sortOrderParam/, model.SortOrder(sortOrderParam)/g' "$PROJECT_ROOT"/internal/server/openapi/api_model_catalog_service.go + # remove unused import + sed -i '/encoding\/json/d' "$PROJECT_ROOT"/internal/server/openapi/api_model_catalog_service.go fi echo "Assembling type_assert Go file"