Skip to content

Commit

Permalink
Merge pull request #822 from credebl/fix/create-organization
Browse files Browse the repository at this point in the history
fix: create organisation changes and added geo-location attribute in response.
  • Loading branch information
ganeshawle25 authored Jul 2, 2024
2 parents 0c93750 + 8432615 commit 2977678
Show file tree
Hide file tree
Showing 4 changed files with 345 additions and 337 deletions.
18 changes: 6 additions & 12 deletions apps/api-gateway/src/organization/dtos/create-organization-dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,27 +53,21 @@ export class CreateOrganizationDto {
@IsString({ message: 'registrationNumber must be in string format.' })
registrationNumber?: string;

@ApiPropertyOptional({ example: 'IN' })
@ApiPropertyOptional({ example: 101 })
@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()
@IsNumber({}, { message: 'countryId must be a number' })
countryId?: number;

@ApiPropertyOptional({ example: 'MH' })
@ApiPropertyOptional({ example: 4008 })
@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()
@IsNumber({}, { message: 'stateId must be a number' })
stateId?: number;

@ApiPropertyOptional({ example: 'Mumbai' })
@ApiPropertyOptional({ example: 1000 })
@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' })
@IsNumber()
@IsNumber({}, { message: 'cityId must be a number' })
cityId?: number;
}
Loading

0 comments on commit 2977678

Please sign in to comment.