diff --git a/packages/orval/src/utils/options.ts b/packages/orval/src/utils/options.ts index 81e5f5287..0b6a40e6d 100644 --- a/packages/orval/src/utils/options.ts +++ b/packages/orval/src/utils/options.ts @@ -93,6 +93,7 @@ export const normalizeOptions = async ( let mock = outputOptions.mock ?? globalOptions.mock; if (typeof mock === 'boolean' && mock) { mock = DEFAULT_MOCK_OPTIONS; + } else if (isFunction(mock)) { } else if (!mock) { mock = undefined; } else {