Skip to content

Commit

Permalink
feat: ecosystem ms setup (#104)
Browse files Browse the repository at this point in the history
* worked on the master table json file and .env sample refractoring

Signed-off-by: @nishad.shirsat <[email protected]>

* merge dev branch to main (#77)

* fix: Changed the passkey approch

Signed-off-by: KulkarniShashank <[email protected]>

* feat/fix: Implemented Add passkey for existing users

Signed-off-by: tipusinghaw <[email protected]>

* feat:implemented add passke

Signed-off-by: tipusinghaw <[email protected]>

* fix: login error message

Signed-off-by: tipusinghaw <[email protected]>

---------

Signed-off-by: KulkarniShashank <[email protected]>
Signed-off-by: tipusinghaw <[email protected]>

* Included credebl-master-table json file in the .gitignore

Signed-off-by: @nishad.shirsat <[email protected]>

* Create ecosystem monorepo

Signed-off-by: KulkarniShashank <[email protected]>

* feat: Implemented ecosystem microservice

Signed-off-by: tipusinghaw <[email protected]>

* feat: changed controller name

Signed-off-by: tipusinghaw <[email protected]>

---------

Signed-off-by: tipusinghaw <[email protected]>
Signed-off-by: @nishad.shirsat <[email protected]>
Signed-off-by: KulkarniShashank <[email protected]>
Co-authored-by: Nishad Shirsat <[email protected]>
Co-authored-by: @nishad.shirsat <[email protected]>
Co-authored-by: Shashank Kulkarni <[email protected]>
Co-authored-by: KulkarniShashank <[email protected]>
Signed-off-by: tipusinghaw <[email protected]>
Signed-off-by: KulkarniShashank <[email protected]>
  • Loading branch information
5 people committed Sep 11, 2024
1 parent c60bb25 commit 7f21c17
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions apps/api-gateway/src/ecosystem/dtos/create-organization-dto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { ApiExtraModels, ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsNotEmpty, IsOptional, IsString, MaxLength, MinLength } from 'class-validator';

import { Transform } from 'class-transformer';
import { trim } from '@credebl/common/cast.helper';

@ApiExtraModels()
export class CreateEcosystemDto {

@ApiProperty()
@Transform(({ value }) => trim(value))
@IsNotEmpty({ message: 'Organization name is required.' })
@MinLength(2, { message: 'Organization name must be at least 2 characters.' })
@MaxLength(50, { message: 'Organization name must be at most 50 characters.' })
@IsString({ message: 'Organization name must be in string format.' })
name: string;

@ApiPropertyOptional()
@Transform(({ value }) => trim(value))
@MinLength(2, { message: 'Description must be at least 2 characters.' })
@MaxLength(255, { message: 'Description must be at most 255 characters.' })
@IsString({ message: 'Description must be in string format.' })
description: string;

@ApiPropertyOptional()
@IsOptional()
@Transform(({ value }) => trim(value))
@IsString({ message: 'logo must be in string format.' })
logo: string;

@ApiPropertyOptional()
@IsOptional()
@Transform(({ value }) => trim(value))
website?: string;

}
2 changes: 1 addition & 1 deletion apps/ecosystem/src/ecosystem.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ import { PrismaService } from '@credebl/prisma-service';
controllers: [EcosystemController],
providers: [EcosystemService, PrismaService, Logger, EcosystemRepository]
})
export class EcosystemModule { }
export class EcosystemModule { }

0 comments on commit 7f21c17

Please sign in to comment.