From 31ba01703c322850c2d2fbd4d931cad0b2b15d18 Mon Sep 17 00:00:00 2001 From: melloware Date: Tue, 10 Dec 2024 07:17:59 -0500 Subject: [PATCH] fix(core): filters = {} treated as undefined --- packages/orval/src/utils/options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/orval/src/utils/options.ts b/packages/orval/src/utils/options.ts index f2f003d9b..64977b674 100644 --- a/packages/orval/src/utils/options.ts +++ b/packages/orval/src/utils/options.ts @@ -133,7 +133,7 @@ export const normalizeOptions = async ( parserDefaultOptions, inputOptions.parserOptions ?? {}, ), - filters: inputOptions.filters, + filters: Object.keys(inputOptions.filters || {}).length === 0 ? undefined : inputOptions.filters, }, output: { target: globalOptions.output