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.
❌ 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: "",
};