feat: add error messages to all 3rd party services
This commit is contained in:
parent
4015e23d34
commit
bb17c71cb1
15 changed files with 160 additions and 127 deletions
|
|
@ -35,18 +35,18 @@ export default {
|
|||
],
|
||||
getValidationSchema: account => {
|
||||
return Yup.object().shape({
|
||||
accountSid: Yup.string()
|
||||
.max(100, 'Too long')
|
||||
.required(),
|
||||
authToken: Yup.string()
|
||||
.max(100, 'Too long')
|
||||
accountSid: Yup.string('The account SID must be a string')
|
||||
.max(100, 'The account SID is too long')
|
||||
.required('The account SID is required'),
|
||||
authToken: Yup.string('The auth token must be a string')
|
||||
.max(100, 'The auth token is too long')
|
||||
.test(secretTest(account?.authToken)),
|
||||
fromNumber: Yup.string()
|
||||
.max(100, 'Too long')
|
||||
.required(),
|
||||
toNumber: Yup.string()
|
||||
.max(100, 'Too long')
|
||||
.required()
|
||||
fromNumber: Yup.string('The from number must be a string')
|
||||
.max(100, 'The from number is too long')
|
||||
.required('The from number is required'),
|
||||
toNumber: Yup.string('The to number must be a string')
|
||||
.max(100, 'The to number is too long')
|
||||
.required('The to number is required')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue