diff --git a/mongodb-lens.js b/mongodb-lens.js index 328ea45..1a08d70 100755 --- a/mongodb-lens.js +++ b/mongodb-lens.js @@ -5764,11 +5764,9 @@ const getPackageVersion = () => { } const createBooleanSchema = (description, defaultValue = 'true') => - z.string() - .transform(val => val?.toLowerCase()) - .pipe(z.enum(['true', 'false'])) - .default(defaultValue) + z.enum(['true', 'false']) .describe(description) + .default(defaultValue) const arraysEqual = (a, b) => { if (a.length !== b.length) return false