fix: check confidence level in [0,100]
This commit is contained in:
parent
7b46224bd9
commit
bbfa9c0e76
1 changed files with 2 additions and 1 deletions
|
|
@ -43,7 +43,8 @@ export default {
|
|||
.required('The token is required'),
|
||||
confidenceFactor: Yup.number('The confidence factor must be a number')
|
||||
.integer('The confidence factor must be an integer')
|
||||
.positive('The confidence factor must be positive')
|
||||
.min(0, 'The confidence factor must be non-negative')
|
||||
.max(100, 'The confidence factor must be less than or equal to 100')
|
||||
.required('The confidence factor is required')
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue