File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " tc-projects-service" ,
3- "version" : " 1.3.1 " ,
3+ "version" : " 1.3.2 " ,
44 "description" : " Projects microservice" ,
55 "main" : " index.js" ,
66 "engines" : {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const createProjectValdiations = {
2323 body : {
2424 param : Joi . object ( ) . keys ( {
2525 name : Joi . string ( ) . required ( ) ,
26- description : Joi . string ( ) . allow ( null ) ,
26+ description : Joi . string ( ) . allow ( null ) . allow ( '' ) . optional ( ) ,
2727 billingAccountId : Joi . number ( ) . positive ( ) ,
2828 utm : Joi . object ( ) . keys ( {
2929 source : Joi . string ( ) . allow ( null ) ,
@@ -69,6 +69,7 @@ module.exports = [
6969 : PROJECT_MEMBER_ROLE . CUSTOMER ;
7070 // set defaults
7171 _ . defaults ( project , {
72+ description : '' ,
7273 createdBy : req . authUser . userId ,
7374 updatedBy : req . authUser . userId ,
7475 challengeEligibility : [ ] ,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const updateProjectValdiations = {
4141 param : Joi . object ( ) . keys ( {
4242 id : Joi . number ( ) . valid ( Joi . ref ( '$params.id' ) ) ,
4343 name : Joi . string ( ) ,
44- description : Joi . string ( ) ,
44+ description : Joi . string ( ) . allow ( null ) . allow ( '' ) . optional ( ) ,
4545 billingAccountId : Joi . number ( ) . positive ( ) ,
4646 status : Joi . any ( ) . valid ( _ . values ( PROJECT_STATUS ) ) ,
4747 estimatedPrice : Joi . number ( ) . precision ( 2 ) . positive ( ) . allow ( null ) ,
You can’t perform that action at this time.
0 commit comments