mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-09-23 02:20:44 +02:00
feat(core): Add special @tool displayOption (#14318)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
co-authored by
कारतोफ्फेलस्क्रिप्ट™
parent
9104743a5f
commit
73748e300e
@@ -219,6 +219,7 @@ export abstract class NodeExecutionContext implements Omit<FunctionsBase, 'getCr
|
||||
additionalData.currentNodeParameters || node.parameters,
|
||||
nodeCredentialDescription,
|
||||
node,
|
||||
nodeType.description,
|
||||
node.parameters,
|
||||
)
|
||||
) {
|
||||
|
||||
@@ -33,7 +33,13 @@ function findPropertyFromParameterName(
|
||||
return options.find(
|
||||
(i) =>
|
||||
i.name === name &&
|
||||
NodeHelpers.displayParameterPath(nodeParameters, i, currentParamPath, node),
|
||||
NodeHelpers.displayParameterPath(
|
||||
nodeParameters,
|
||||
i,
|
||||
currentParamPath,
|
||||
node,
|
||||
nodeType.description,
|
||||
),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
+2
-1
@@ -160,7 +160,8 @@ export const validateValueAgainstSchema = (
|
||||
|
||||
const propertyDescription = nodeType.description.properties.find(
|
||||
(prop) =>
|
||||
parameterPath[0] === prop.name && NodeHelpers.displayParameter(node.parameters, prop, node),
|
||||
parameterPath[0] === prop.name &&
|
||||
NodeHelpers.displayParameter(node.parameters, prop, node, nodeType.description),
|
||||
);
|
||||
|
||||
if (!propertyDescription) {
|
||||
|
||||
Reference in New Issue
Block a user