Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added geolocation APIs in CREDEBL. #806

Merged
merged 2 commits into from
Jun 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,24 @@ export class CreateOrganizationDto {
@IsString({ message: 'registrationNumber must be in string format.' })
registrationNumber?: string;

@ApiProperty({ example: 'IN' })
@ApiPropertyOptional({ example: 'IN' })
@IsOptional()
@IsNotEmpty({ message: 'country is required' })
@MinLength(2, { message: 'country must be at least 2 characters' })
@MaxLength(50, { message: 'country must be at most 50 characters' })
@IsNumber()
countryId?: number;

@ApiProperty({ example: 'MH' })
@ApiPropertyOptional({ example: 'MH' })
@IsOptional()
@IsNotEmpty({ message: 'state is required' })
@MinLength(2, { message: 'state must be at least 2 characters' })
@MaxLength(50, { message: 'state must be at most 50 characters' })
@IsNumber()
stateId?: number;

@ApiProperty({ example: 'Mumbai' })
@ApiPropertyOptional({ example: 'Mumbai' })
@IsOptional()
@IsNotEmpty({ message: 'city is required' })
@MinLength(2, { message: 'city must be at least 2 characters' })
@MaxLength(50, { message: 'city must be at most 50 characters' })
Expand Down