displayName
for Update operation node parameter must be Update Fields
📋 This rule is part of the plugin:n8n-nodes-base/nodes
config.
🔧 Run ESLint with --fix
option to autofix the issue flagged by this rule.
❌ Example of incorrect code:
const test = {
displayName: "Wrong",
name: "updateFields",
type: "collection",
placeholder: "Add Field",
default: {},
displayOptions: {
show: {
resource: ["person"],
operation: ["update"],
},
},
options: [],
};
✅ Example of correct code:
const test = {
displayName: "Update Fields",
name: "updateFields",
type: "collection",
placeholder: "Add Field",
default: {},
displayOptions: {
show: {
resource: ["person"],
operation: ["update"],
},
},
options: [],
};
const test = {
displayName: "User ID",
name: "userId",
type: "collection",
placeholder: "Add Field",
default: {},
displayOptions: {
show: {
resource: ["user"],
operation: ["update"],
},
},
options: [],
};