fix(TS2564): add ! to required DTO properties in ExternalDataController
This commit is contained in:
parent
d46b38c216
commit
dc13a487b5
1 changed files with 3 additions and 3 deletions
|
|
@ -3,20 +3,20 @@ import { IsEnum, IsNumber, IsOptional, IsString } from 'class-validator';
|
|||
import { ExternalDataService } from './external-data.service';
|
||||
|
||||
class LegislationSearchDto {
|
||||
@IsString() scenario: string;
|
||||
@IsString() scenario!: string;
|
||||
@IsOptional() @IsString() country?: string;
|
||||
@IsOptional() @IsNumber() topK?: number;
|
||||
}
|
||||
|
||||
class LegislationAskDto {
|
||||
@IsString() message: string;
|
||||
@IsString() message!: string;
|
||||
@IsOptional() @IsString() country?: string;
|
||||
@IsOptional() @IsEnum(['general', 'fiscal', 'national']) type?: 'general' | 'fiscal' | 'national';
|
||||
@IsOptional() @IsString() sessionId?: string;
|
||||
}
|
||||
|
||||
class CapabilityCheckDto {
|
||||
@IsString() capability: string;
|
||||
@IsString() capability!: string;
|
||||
@IsOptional() @IsString() context?: string;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue