Skip to content

Commit

Permalink
TASK: Add validationErrorMessage to Regex validator
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebobo committed Jan 16, 2024
1 parent d6ff9ef commit f7c2da9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions NodeTypes.Schema.json
Expand Up @@ -1013,6 +1013,9 @@
"properties": {
"regularExpression": {
"type": "string"
},
"validationErrorMessage": {
"type": "string"
}
}
},
Expand Down
5 changes: 2 additions & 3 deletions examples/NodeTypes.Validators.yaml
Expand Up @@ -38,13 +38,12 @@ My.Vendor:Content.Validators:
minimum: 0
maximum: 2
Neos.Neos/Validation/RegularExpressionValidator:
regularExpression: foo
regularExpression: '/^[a-z0-9\-]+$/i'
validationErrorMessage: 'Please enter only lowercase letters, numbers or minus'
Neos.Neos/Validation/StringValidator: {}
Neos.Neos/Validation/StringLengthValidator:
minimum: 0
maximum: 1
ignoreHtml: false
Neos.Neos/Validation/TextValidator: { }
Neos.Neos/Validation/UuidValidator: { }


0 comments on commit f7c2da9

Please sign in to comment.