feat: add error messages to all 3rd party services

This commit is contained in:
Sérgio Salgado 2022-02-11 17:43:46 +00:00
parent 4015e23d34
commit bb17c71cb1
15 changed files with 160 additions and 127 deletions

View file

@ -32,14 +32,14 @@ export default {
],
getValidationSchema: account => {
return Yup.object().shape({
clientId: Yup.string()
.max(100, 'Too long')
.required(),
key: Yup.string()
.max(100, 'Too long')
.required(),
secret: Yup.string()
.max(100, 'Too long')
clientId: Yup.string('The client ID must be a string')
.max(100, 'The client ID is too long')
.required('The client ID is required'),
key: Yup.string('The key must be a string')
.max(100, 'The key is too long')
.required('The key is required'),
secret: Yup.string('The secret must be a string')
.max(100, 'The secret is too long')
.test(secretTest(account?.secret))
})
}