Skip to content

Commit

Permalink
BUGFIX: Allow negative values in NumberRangeValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebobo committed Feb 16, 2024
1 parent f765ed4 commit 3cf3118
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions NodeTypes.Schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1002,12 +1002,10 @@
"properties": {
"validationErrorMessage": true,
"minimum": {
"type": "integer",
"minimum": 0
"type": "integer"
},
"maximum": {
"type": "integer",
"minimum": 1
"type": "integer"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion examples/NodeTypes.Validators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ My.Vendor:Content.Validators:
formatType: decimal
validationErrorMessage: 'Please enter a number'
Neos.Neos/Validation/NumberRangeValidator:
minimum: 0
minimum: -2
maximum: 2
Neos.Neos/Validation/RegularExpressionValidator:
regularExpression: '/^[a-z0-9\-]+$/i'
Expand Down

0 comments on commit 3cf3118

Please sign in to comment.