Skip to content

Latest commit

 

History

History
69 lines (57 loc) · 1.29 KB

node-param-display-name-wrong-for-update-fields.md

File metadata and controls

69 lines (57 loc) · 1.29 KB

node-param-display-name-wrong-for-update-fields

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.

Examples

❌ 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: [],
};

Links