Add enum support to configuration schema (#9247)

This commit is contained in:
Matt Rubens 2025-11-13 17:06:25 -05:00 committed by GitHub
parent 8d14e90d8a
commit ad1e9a82f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View file

@ -100,6 +100,12 @@ describe("generatePackageJson", () => {
default: "",
description: "%settings.customStoragePath.description%",
},
"roo-cline.toolProtocol": {
type: "string",
enum: ["xml", "native"],
default: "xml",
description: "%settings.toolProtocol.description%",
},
},
},
},
@ -213,6 +219,12 @@ describe("generatePackageJson", () => {
default: "",
description: "%settings.customStoragePath.description%",
},
"roo-code-nightly.toolProtocol": {
type: "string",
enum: ["xml", "native"],
default: "xml",
description: "%settings.toolProtocol.description%",
},
},
},
},

View file

@ -86,6 +86,7 @@ const configurationPropertySchema = z.object({
})
.optional(),
properties: z.record(z.string(), z.any()).optional(),
enum: z.array(z.any()).optional(),
default: z.any().optional(),
description: z.string(),
})