Updating validation so that node or python images can be selected (#2004)

This commit is contained in:
Jamie Hewitt 2023-11-14 15:20:54 +03:00 committed by GitHub
parent 908acb1e7b
commit b5b3137ea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -31,11 +31,17 @@ const validationMetadata = {
}),
dockerImageCustomChecksum: Yup.string().when('type', {
is: 'algorithm',
then: Yup.string().required('Required')
then: Yup.string().when('dockerImage', {
is: 'custom',
then: Yup.string().required('Required')
})
}),
dockerImageCustomEntrypoint: Yup.string().when('type', {
is: 'algorithm',
then: Yup.string().required('Required')
then: Yup.string().when('dockerImage', {
is: 'custom',
then: Yup.string().required('Required')
})
}),
termsAndConditions: Yup.boolean()
.required('Required')