Skip to content

Latest commit

 

History

History
84 lines (69 loc) · 1.59 KB

node-param-display-name-wrong-for-dynamic-multi-options.md

File metadata and controls

84 lines (69 loc) · 1.59 KB

node-param-display-name-wrong-for-dynamic-multi-options

displayName for dynamic-multi-options-type node parameter must end with Names or IDs

📋 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: "Fields",
	name: "field",
	type: "multiOptions",
	typeOptions: {
		loadOptionsMethod: "getFields",
	},
	default: "",
};

const test = {
	displayName: "Field",
	name: "field",
	type: "multiOptions",
	typeOptions: {
		loadOptionsMethod: "getFields",
	},
	default: "",
};

const test = {
	displayName: "Fields Name or ID",
	name: "field",
	type: "multiOptions",
	typeOptions: {
		loadOptionsMethod: "getFields",
	},
	default: "",
};

const test = {
	displayName: "Custom Schemas",
	name: "customSchema",
	type: "multiOptions",
	typeOptions: {
		loadOptionsMethod: "getSchemas",
	},
	default: "",
};

✅ Example of correct code:

const test = {
	displayName: "Field Names or IDs",
	name: "field",
	type: "multiOptions",
	typeOptions: {
		loadOptionsMethod: "getFields",
	},
	default: "",
};

const test = {
	displayName: "Properties with History",
	name: "field",
	type: "multiOptions",
	typeOptions: {
		loadOptionsMethod: "getProperties",
	},
	default: "",
};

Links