diff --git a/src/api/builder/schema.ts b/src/api/builder/schema.ts index 07972060a..988da19c7 100644 --- a/src/api/builder/schema.ts +++ b/src/api/builder/schema.ts @@ -339,7 +339,7 @@ export const SchemaMakeResult = SchemaResultBase.extend({ custom: z.object({ nativePrjDir: z.string().optional().describe('Native project path after build'), // 构建后的原生项目地址 executableFile: z.string().optional().describe('Compiled executable file path'), // 编译后的可执行文件地址 - }).optional().describe('Custom fields after compiling the project, in object format'), // 编译项目后的自定义字段, object 形式 + }).passthrough().optional().describe('Custom fields after compiling the project, in object format'), // 编译项目后的自定义字段, object 形式 }).nullable().describe('Result after compiling the project'); // 编译项目后的结果 export const SchemaPreviewSettingsResult = z.object({ @@ -412,4 +412,4 @@ export const SchemaBuildDest = z.string().min(1).describe('Build Output Director export type TBuildDest = z.infer; export const SchemaRunResult = z.string().describe('Run URL'); // 运行 URL -export type TRunResult = z.infer; \ No newline at end of file +export type TRunResult = z.infer;