File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -981,6 +981,7 @@ createChallenge.schema = {
981981 key : Joi . string ( )
982982 } ) ) ,
983983 discussions : Joi . array ( ) . items ( Joi . object ( ) . keys ( {
984+ id : Joi . optionalId ( ) ,
984985 name : Joi . string ( ) . required ( ) ,
985986 type : Joi . string ( ) . required ( ) . valid ( _ . values ( constants . DiscussionTypes ) ) ,
986987 provider : Joi . string ( ) . required ( ) ,
@@ -1734,6 +1735,7 @@ fullyUpdateChallenge.schema = {
17341735 key : Joi . string ( )
17351736 } ) . unknown ( true ) ) ,
17361737 discussions : Joi . array ( ) . items ( Joi . object ( ) . keys ( {
1738+ id : Joi . optionalId ( ) ,
17371739 name : Joi . string ( ) . required ( ) ,
17381740 type : Joi . string ( ) . required ( ) . valid ( _ . values ( constants . DiscussionTypes ) ) ,
17391741 provider : Joi . string ( ) . required ( ) ,
@@ -1821,6 +1823,7 @@ partiallyUpdateChallenge.schema = {
18211823 key : Joi . string ( )
18221824 } ) . unknown ( true ) ) ,
18231825 discussions : Joi . array ( ) . items ( Joi . object ( ) . keys ( {
1826+ id : Joi . optionalId ( ) ,
18241827 name : Joi . string ( ) . required ( ) ,
18251828 type : Joi . string ( ) . required ( ) . valid ( _ . values ( constants . DiscussionTypes ) ) ,
18261829 provider : Joi . string ( ) . required ( ) ,
You can’t perform that action at this time.
0 commit comments