From 8140f2d848b8a84b7932873fe20eb373f0a882b1 Mon Sep 17 00:00:00 2001 From: Terminal <32599364+TerminalFi@users.noreply.github.com> Date: Thu, 27 Jun 2024 22:11:37 -0500 Subject: [PATCH] Update update-schema-settings.py --- scripts/update-schema-settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/update-schema-settings.py b/scripts/update-schema-settings.py index dde990c..c1853ec 100755 --- a/scripts/update-schema-settings.py +++ b/scripts/update-schema-settings.py @@ -61,6 +61,7 @@ } TYPE_MAP = { + "any": "any", "[]string": "array", "map[string]string": "object", "enum": "enum", @@ -141,7 +142,7 @@ def generate_schema(self): current_key = f"gopls.{value['Name']}" print(current_key) print(value["Type"]) - current_type = TYPE_MAP[value["Type"]] + current_type = TYPE_MAP.get(value["Type"], value["Type"]) resolved_type = current_type if resolved_type == "enum":