diff --git a/src/loader/loader.ts b/src/loader/loader.ts index cdaabb8..c9a502e 100644 --- a/src/loader/loader.ts +++ b/src/loader/loader.ts @@ -26,7 +26,7 @@ export async function loadSchema( } satisfies JitiOptions), ); - const rawSchema = await jiti.import(entryPath) as InputObject; + const rawSchema = (await jiti.import(entryPath)) as InputObject; const schema = await resolveSchema(rawSchema, options.defaults, { ignoreDefaults: options.ignoreDefaults, });