Skip to content

Commit 17e0b4d

Browse files
Slachaider-chat-bot
andcommitted
feat: wrap list_tables response in response_data object
Co-authored-by: aider (openrouter/tngtech/deepseek-r1t2-chimera:free) <aider@aider.chat>
1 parent facf23b commit 17e0b4d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/server/server.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -989,8 +989,10 @@ func (s *ClickHouseJWTServer) handleListTablesOpenAPI(w http.ResponseWriter, r *
989989
}
990990

991991
response := map[string]interface{}{
992-
"tables": tables,
993-
"count": len(tables),
992+
"response_data": map[string]interface{}{
993+
"count": len(tables),
994+
"tables": tables,
995+
},
994996
}
995997

996998
w.Header().Set("Content-Type", "application/json")

0 commit comments

Comments
 (0)