mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(core): Add special @tool displayOption (#14318)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -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,
|
||||
),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -829,8 +829,16 @@ export class RoutingNode {
|
||||
};
|
||||
let basePath = path ? `${path}.` : '';
|
||||
|
||||
const { node } = this.context;
|
||||
if (!NodeHelpers.displayParameter(node.parameters, nodeProperties, node, node.parameters)) {
|
||||
const { node, nodeType } = this.context;
|
||||
if (
|
||||
!NodeHelpers.displayParameter(
|
||||
node.parameters,
|
||||
nodeProperties,
|
||||
node,
|
||||
nodeType.description,
|
||||
node.parameters,
|
||||
)
|
||||
) {
|
||||
return undefined;
|
||||
}
|
||||
if (nodeProperties.routing) {
|
||||
|
||||
@@ -999,6 +999,7 @@ export class WorkflowExecute {
|
||||
nodeIssues = NodeHelpers.getNodeParametersIssues(
|
||||
nodeType.description.properties,
|
||||
node,
|
||||
nodeType.description,
|
||||
inputData.pinDataNodeNames,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user