Custom node validations

Describe the problem/error/question

I have a custom node, and I added a validation in its definition with regex following the correct typing of INodeProperties in typescript but from the UI it does not know and when I look in the package editor-ui I do not see that there is an integration with these properties.

This feature is thought for a future implementation (when) or is it deprecated from the frontend?

What is the error message (if any)?

Validation does not work.


import { INodeTypeDescription, INodeProperties } from 'n8n-workflow';

export const ageFields: INodeProperties [] = [{
	displayName: 'Age',
	required: true,
	default: '',
	name: 'text',
	type: 'string',
        modes: [
			displayName: 'Validation',
			placeholder: 'Please enter age here',
                       name: 'validation',
                       type: 'string',
                       validation: [
                               type: 'regex',
                               properties: {
                                     regex: '^[0-9]+$',
                                     errorMessage: 'Ingrese solo nĂºmeros.',

export const versionDescription: INodeTypeDescription = {
	displayName: 'Age',
	name: 'age',
	icon: 'file:comment-solid.svg',
	group: ['transform'],
	version: 1,
	subtitle: '={{$parameter["text"]}}',
	description: 'Sends a text response',
	defaults: {
		name: 'Age',
	inputs: ['main'],
	outputs: ['main'],
	credentials: [],
	properties: ageFields,

Information on your n8n setup

  • n8n version: 0.228.2
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: MacOS Ventura

Hi @Yosdany_Blanco_Miran, welcome to the community!

Perhaps our chief node builder @marcus can help with this one?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.