mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
Updating validation so that node or python images can be selected (#2004)
This commit is contained in:
parent
908acb1e7b
commit
b5b3137ea1
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user