File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { ApiProperty } from '@nestjs/swagger' ;
2
2
import { IsInt , IsNotEmpty , IsString } from 'class-validator' ;
3
- import { Type } from 'class-transformer' ;
3
+ import { Expose , Type } from 'class-transformer' ;
4
4
5
5
export class Endpoint {
6
6
@ApiProperty ( {
@@ -12,6 +12,7 @@ export class Endpoint {
12
12
} )
13
13
@IsNotEmpty ( )
14
14
@IsString ( { always : true } )
15
+ @Expose ( )
15
16
host : string ;
16
17
17
18
@ApiProperty ( {
@@ -22,5 +23,6 @@ export class Endpoint {
22
23
@IsNotEmpty ( )
23
24
@IsInt ( { always : true } )
24
25
@Type ( ( ) => Number )
26
+ @Expose ( )
25
27
port : number ;
26
28
}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
10
10
MaxLength ,
11
11
ValidateNested ,
12
12
} from 'class-validator' ;
13
- import { Type } from 'class-transformer' ;
13
+ import { Expose , Type } from 'class-transformer' ;
14
14
import { Endpoint } from 'src/common/models' ;
15
15
import {
16
16
CliOutputFormatterTypes ,
@@ -80,6 +80,7 @@ export class ClusterSingleNodeOptions extends Endpoint {
80
80
} )
81
81
@IsBoolean ( )
82
82
@IsDefined ( )
83
+ @Expose ( )
83
84
enableRedirection : boolean ;
84
85
}
85
86
You can’t perform that action at this time.
0 commit comments