From ef501bcfa528119168787e9d857f1bb90e0c3114 Mon Sep 17 00:00:00 2001 From: David Luecke Date: Tue, 24 Jan 2023 07:37:13 -0800 Subject: [PATCH] fix(generators): Do not removeAdditional in queries (#3000) --- packages/generators/src/app/templates/validators.tpl.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/generators/src/app/templates/validators.tpl.ts b/packages/generators/src/app/templates/validators.tpl.ts index b7b286bc34..2464d364a0 100644 --- a/packages/generators/src/app/templates/validators.tpl.ts +++ b/packages/generators/src/app/templates/validators.tpl.ts @@ -26,8 +26,7 @@ const formats: FormatsPluginOptions = [ export const dataValidator: Ajv = addFormats(new Ajv({}), formats) export const queryValidator: Ajv = addFormats(new Ajv({ - coerceTypes: true, - removeAdditional: true + coerceTypes: true }), formats) `