Skip to content

Commit

Permalink
Update update-schema-settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TerminalFi authored Jun 28, 2024
1 parent 377cf3b commit 8140f2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/update-schema-settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
}

TYPE_MAP = {
"any": "any",
"[]string": "array",
"map[string]string": "object",
"enum": "enum",
Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit 8140f2d

Please sign in to comment.