@@ -100,16 +100,19 @@ type UserStatusOptionId = keyof typeof userStatusOptions
100100export class TestUserAddress {
101101 @PortString ( {
102102 description : 'Street of the address' ,
103+ defaultValue : '' ,
103104 } )
104105 street ?: string = ''
105106
106107 @PortString ( {
107108 description : 'City of the address' ,
109+ defaultValue : '' ,
108110 } )
109111 city ?: string = ''
110112
111113 @PortString ( {
112114 description : 'State of the address' ,
115+ defaultValue : '' ,
113116 } )
114117 country ?: string = 'EU'
115118
@@ -135,21 +138,25 @@ export class TestUserObject {
135138
136139 @PortString ( {
137140 description : 'Username of the user' ,
141+ defaultValue : '' ,
138142 } )
139143 username : string = ''
140144
141145 @PortString ( {
142146 description : 'Name of the user' ,
147+ defaultValue : '' ,
143148 } )
144149 name : string = ''
145150
146151 @PortNumber ( {
147152 description : 'Age of the user' ,
153+ defaultValue : 0 ,
148154 } )
149155 age : number = 0
150156
151157 @PortNumber ( {
152158 description : 'Age of the user decimal' ,
159+ defaultValue : 0 ,
153160 } )
154161 ageDecimal : number = 0
155162
@@ -167,6 +174,7 @@ export class TestUserObject {
167174 type : 'string' ,
168175 defaultValue : '' ,
169176 } ,
177+ defaultValue : [ ] ,
170178 } )
171179 emails : string [ ] = [ ]
172180
@@ -225,6 +233,7 @@ export class UserProfileNode extends BaseNode {
225233 // Case for infer schema from field value
226234 @Input ( ) @PortObject ( {
227235 schema : TestUserObject ,
236+ defaultValue : new TestUserObject ( ) ,
228237 } )
229238 user1 : TestUserObject = new TestUserObject ( )
230239
@@ -331,6 +340,7 @@ export class UserProfileNode extends BaseNode {
331340 defaultValue : new TestUserObject ( ) ,
332341 } ,
333342 } ,
343+ defaultValue : [ ] ,
334344 } )
335345 users2DArray : TestUserObject [ ] [ ] = [ ]
336346
@@ -417,7 +427,9 @@ export class UserProfileNode extends BaseNode {
417427 numberArray ?: number [ ]
418428
419429 @Output ( )
420- @PortArrayObject ( TestUserObject )
430+ @PortArrayObject ( TestUserObject , {
431+ defaultValue : [ ] ,
432+ } )
421433 simpleObjectArray ?: TestUserObject [ ] = [ ]
422434
423435 @Output ( )
0 commit comments