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