File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1165,6 +1165,7 @@ createChallenge.schema = {
1165
1165
tags : Joi . array ( ) . items ( Joi . string ( ) ) , // tag names
1166
1166
projectId : Joi . number ( ) . integer ( ) . positive ( ) ,
1167
1167
legacyId : Joi . number ( ) . integer ( ) . positive ( ) ,
1168
+ constraints : Joi . array ( ) . items ( Joi . string ( ) ) . min ( 1 ) . optional ( ) ,
1168
1169
startDate : Joi . date ( ) . iso ( ) ,
1169
1170
status : Joi . string ( ) . valid ( [
1170
1171
constants . challengeStatuses . Active ,
@@ -1991,6 +1992,7 @@ updateChallenge.schema = {
1991
1992
tags : Joi . array ( ) . items ( Joi . string ( ) . required ( ) ) . min ( 1 ) , // tag names
1992
1993
projectId : Joi . number ( ) . integer ( ) . positive ( ) ,
1993
1994
legacyId : Joi . number ( ) . integer ( ) . positive ( ) ,
1995
+ constraints : Joi . array ( ) . items ( Joi . string ( ) ) . min ( 1 ) . optional ( ) ,
1994
1996
status : Joi . string ( ) . valid ( _ . values ( constants . challengeStatuses ) ) ,
1995
1997
attachments : Joi . array ( ) . items (
1996
1998
Joi . object ( ) . keys ( {
You can’t perform that action at this time.
0 commit comments