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 1
1
{
2
2
"name" : " tc-projects-service" ,
3
- "version" : " 1.3.1 " ,
3
+ "version" : " 1.3.2 " ,
4
4
"description" : " Projects microservice" ,
5
5
"main" : " index.js" ,
6
6
"engines" : {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const createProjectValdiations = {
23
23
body : {
24
24
param : Joi . object ( ) . keys ( {
25
25
name : Joi . string ( ) . required ( ) ,
26
- description : Joi . string ( ) . allow ( null ) ,
26
+ description : Joi . string ( ) . allow ( null ) . allow ( '' ) . optional ( ) ,
27
27
billingAccountId : Joi . number ( ) . positive ( ) ,
28
28
utm : Joi . object ( ) . keys ( {
29
29
source : Joi . string ( ) . allow ( null ) ,
@@ -69,6 +69,7 @@ module.exports = [
69
69
: PROJECT_MEMBER_ROLE . CUSTOMER ;
70
70
// set defaults
71
71
_ . defaults ( project , {
72
+ description : '' ,
72
73
createdBy : req . authUser . userId ,
73
74
updatedBy : req . authUser . userId ,
74
75
challengeEligibility : [ ] ,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const updateProjectValdiations = {
41
41
param : Joi . object ( ) . keys ( {
42
42
id : Joi . number ( ) . valid ( Joi . ref ( '$params.id' ) ) ,
43
43
name : Joi . string ( ) ,
44
- description : Joi . string ( ) ,
44
+ description : Joi . string ( ) . allow ( null ) . allow ( '' ) . optional ( ) ,
45
45
billingAccountId : Joi . number ( ) . positive ( ) ,
46
46
status : Joi . any ( ) . valid ( _ . values ( PROJECT_STATUS ) ) ,
47
47
estimatedPrice : Joi . number ( ) . precision ( 2 ) . positive ( ) . allow ( null ) ,
You can’t perform that action at this time.
0 commit comments