n8n-nodes-semble v2.1.0


n8n-nodes-semble / services/ValidationService / FieldValidationResult

Interface: FieldValidationResult

Defined in: services/ValidationService.ts:33

Result interface for individual field validation operations

Contains detailed validation results for a single field including validation status, error/warning messages, and normalized values.

Example

const fieldResult: FieldValidationResult = {
  isValid: false,
  fieldName: 'email',
  value: 'invalid-email',
  errorMessage: 'Invalid email format',
  normalizedValue: null
};

FieldValidationResult

Since

2.0.0

Properties

isValid

isValid: boolean

Defined in: services/ValidationService.ts:35

Whether the field value passed validation


fieldName

fieldName: string

Defined in: services/ValidationService.ts:37

Name of the field that was validated


value

value: any

Defined in: services/ValidationService.ts:39

The original value that was validated


errorMessage?

optional errorMessage: string

Defined in: services/ValidationService.ts:41

Error message if validation failed


warningMessage?

optional warningMessage: string

Defined in: services/ValidationService.ts:43

Warning message for non-critical issues


normalizedValue?

optional normalizedValue: any

Defined in: services/ValidationService.ts:45

Normalized/cleaned value after validation