@@ -19,16 +19,12 @@ export const baseSchema = {
19
19
originProjectId : Joi . alternatives ( )
20
20
. try ( Joi . string ( ) , Joi . number ( ) )
21
21
. required ( ) ,
22
- registryOfOrigin : Joi . alternatives ( )
23
- . try ( Joi . string ( ) , Joi . number ( ) )
24
- . required ( ) ,
22
+ registryOfOrigin : Joi . string ( ) . required ( ) ,
25
23
program : Joi . string ( ) . optional ( ) ,
26
- projectName : Joi . alternatives ( ) . try ( Joi . string ( ) , Joi . number ( ) ) . required ( ) ,
27
- projectLink : Joi . alternatives ( ) . try ( Joi . string ( ) , Joi . number ( ) ) . required ( ) ,
28
- projectDeveloper : Joi . alternatives ( )
29
- . try ( Joi . string ( ) , Joi . number ( ) )
30
- . required ( ) ,
31
- sector : Joi . alternatives ( ) . try ( Joi . string ( ) , Joi . number ( ) ) . required ( ) ,
24
+ projectName : Joi . string ( ) . required ( ) ,
25
+ projectLink : Joi . string ( ) . required ( ) ,
26
+ projectDeveloper : Joi . string ( ) . required ( ) ,
27
+ sector : Joi . string ( ) . required ( ) ,
32
28
projectType : Joi . string ( )
33
29
. custom ( pickListValidation ( 'projectType' ) )
34
30
. required ( ) ,
@@ -42,7 +38,7 @@ export const baseSchema = {
42
38
. required ( ) ,
43
39
projectStatusDate : Joi . date ( ) . required ( ) ,
44
40
unitMetric : Joi . string ( ) . custom ( pickListValidation ( 'unitMetric' ) ) . required ( ) ,
45
- methodology : Joi . alternatives ( ) . try ( Joi . string ( ) , Joi . number ( ) ) . required ( ) ,
41
+ methodology : Joi . string ( ) . required ( ) ,
46
42
methodology2 : Joi . string ( ) . optional ( ) ,
47
43
validationBody : Joi . string ( )
48
44
. custom ( pickListValidation ( 'validationBody' ) )
0 commit comments