File tree Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ const schema = {
23
23
brief : Joi . string ( ) . max ( 45 ) . required ( ) ,
24
24
details : Joi . string ( ) . max ( 255 ) . required ( ) ,
25
25
aliases : Joi . array ( ) . required ( ) ,
26
- template : Joi . object ( ) ,
27
- form : Joi . object ( ) ,
26
+ template : Joi . object ( ) . empty ( null ) ,
27
+ form : Joi . object ( ) . empty ( null ) ,
28
28
disabled : Joi . boolean ( ) . optional ( ) ,
29
29
hidden : Joi . boolean ( ) . optional ( ) ,
30
30
isAddOn : Joi . boolean ( ) . optional ( ) ,
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ const schema = {
26
26
brief : Joi . string ( ) . max ( 45 ) ,
27
27
details : Joi . string ( ) . max ( 255 ) ,
28
28
aliases : Joi . array ( ) ,
29
- template : Joi . object ( ) ,
30
- form : Joi . object ( ) ,
29
+ template : Joi . object ( ) . empty ( null ) ,
30
+ form : Joi . object ( ) . empty ( null ) ,
31
31
disabled : Joi . boolean ( ) . optional ( ) ,
32
32
hidden : Joi . boolean ( ) . optional ( ) ,
33
33
isAddOn : Joi . boolean ( ) . optional ( ) ,
Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ const schema = {
22
22
question : Joi . string ( ) . max ( 255 ) . required ( ) ,
23
23
info : Joi . string ( ) . max ( 255 ) . required ( ) ,
24
24
aliases : Joi . array ( ) . required ( ) ,
25
- scope : Joi . object ( ) . optional ( ) . allow ( null ) ,
26
- phases : Joi . object ( ) . optional ( ) . allow ( null ) ,
27
- form : Joi . object ( ) . optional ( ) . allow ( null ) ,
28
- planConfig : Joi . object ( ) . optional ( ) . allow ( null ) ,
29
- priceConfig : Joi . object ( ) . optional ( ) . allow ( null ) ,
25
+ scope : Joi . object ( ) . empty ( null ) ,
26
+ phases : Joi . object ( ) . empty ( null ) ,
27
+ form : Joi . object ( ) . empty ( null ) ,
28
+ planConfig : Joi . object ( ) . empty ( null ) ,
29
+ priceConfig : Joi . object ( ) . empty ( null ) ,
30
30
disabled : Joi . boolean ( ) . optional ( ) ,
31
31
hidden : Joi . boolean ( ) . optional ( ) ,
32
32
createdAt : Joi . any ( ) . strip ( ) ,
Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ const schema = {
25
25
question : Joi . string ( ) . max ( 255 ) ,
26
26
info : Joi . string ( ) . max ( 255 ) ,
27
27
aliases : Joi . array ( ) ,
28
- scope : Joi . object ( ) . optional ( ) . allow ( null ) ,
29
- phases : Joi . object ( ) . optional ( ) . allow ( null ) ,
30
- form : Joi . object ( ) . optional ( ) . allow ( null ) ,
31
- planConfig : Joi . object ( ) . optional ( ) . allow ( null ) ,
32
- priceConfig : Joi . object ( ) . optional ( ) . allow ( null ) ,
28
+ scope : Joi . object ( ) . empty ( null ) ,
29
+ phases : Joi . object ( ) . empty ( null ) ,
30
+ form : Joi . object ( ) . empty ( null ) ,
31
+ planConfig : Joi . object ( ) . empty ( null ) ,
32
+ priceConfig : Joi . object ( ) . empty ( null ) ,
33
33
disabled : Joi . boolean ( ) . optional ( ) ,
34
34
hidden : Joi . boolean ( ) . optional ( ) ,
35
35
createdAt : Joi . any ( ) . strip ( ) ,
You can’t perform that action at this time.
0 commit comments