fix(Code Tool Node): Fix Input Schema Parameter not hiding correctly (#13245)

This commit is contained in:
Charlie Kolb
2025-02-17 11:31:29 +01:00
committed by GitHub
parent b4380d0508
commit 8e15ebf833
2 changed files with 22 additions and 8 deletions

View File

@@ -15,7 +15,11 @@ import type {
} from 'n8n-workflow';
import { jsonParse, NodeConnectionType, NodeOperationError } from 'n8n-workflow';
import { inputSchemaField, jsonSchemaExampleField, schemaTypeField } from '@utils/descriptions';
import {
buildInputSchemaField,
buildJsonSchemaExampleField,
schemaTypeField,
} from '@utils/descriptions';
import { convertJsonSchemaToZod, generateSchema } from '@utils/schemaParsing';
import { getConnectionHintNoticeField } from '@utils/sharedFields';
@@ -168,8 +172,8 @@ export class ToolCode implements INodeType {
default: false,
},
{ ...schemaTypeField, displayOptions: { show: { specifyInputSchema: [true] } } },
jsonSchemaExampleField,
inputSchemaField,
buildJsonSchemaExampleField({ showExtraProps: { specifyInputSchema: [true] } }),
buildInputSchemaField({ showExtraProps: { specifyInputSchema: [true] } }),
],
};