diff --git a/sdk/api/registration/entity.ts b/sdk/api/registration/entity.ts index b755642f..f5493038 100644 --- a/sdk/api/registration/entity.ts +++ b/sdk/api/registration/entity.ts @@ -7,19 +7,19 @@ export interface RegistrationEntity { shareAddressMlh?: boolean; educationalInstitutionType: string; academicYear: string; - codingExperience?: string; - expectations?: string; + codingExperience: string; + expectations: string; driving?: boolean; hackathonId: string; firstHackathon?: boolean; mlhCoc: boolean; mlhDcp: boolean; - project?: string; - referral?: string; + project: string; + referral: string; shareEmailMlh?: boolean; time: number; veteran: string; - excitement?: string; + excitement: string; zip_code?: string; travel_cost?: string; travel_method?: string; diff --git a/sdk/api/user/entity.ts b/sdk/api/user/entity.ts index 984b47b5..1711a7f9 100644 --- a/sdk/api/user/entity.ts +++ b/sdk/api/user/entity.ts @@ -26,18 +26,18 @@ export interface UserRegisterRequest { shareAddressMlh?: boolean; educationalInstitutionType: string; academicYear: string; - codingExperience?: string; - expectations?: string; + codingExperience: string; + expectations: string; driving?: boolean; firstHackathon?: boolean; mlhCoc: boolean; mlhDcp: boolean; - project?: string; - referral?: string; + project: string; + referral: string; shareEmailMlh?: boolean; time: number; veteran: string; - excitement?: string; + excitement: string; zip_code?: string; travel_cost?: string; travel_method?: string; diff --git a/src/entities/registration.entity.ts b/src/entities/registration.entity.ts index de681bb8..ff66f34d 100644 --- a/src/entities/registration.entity.ts +++ b/src/entities/registration.entity.ts @@ -58,11 +58,10 @@ export class Registration extends Entity { @Column({ type: "string" }) educationalInstitutionType: string; - @ApiProperty({ type: "string", required: false, nullable: true }) - @IsOptional() + @ApiProperty() @IsString() - @Column({ type: "string", required: false, nullable: true }) - codingExperience?: string; + @Column({ type: "string" }) + codingExperience: string; @ApiProperty() @Type(() => Number) @@ -82,23 +81,20 @@ export class Registration extends Entity { @Column({ type: "boolean" }) mlhDcp: boolean; - @ApiProperty({ type: "string", required: false, nullable: true }) - @IsOptional() + @ApiProperty() @IsString() - @Column({ type: "string", required: false, nullable: true }) - referral?: string; + @Column({ type: "string" }) + referral: string; - @ApiProperty({ type: "string", required: false, nullable: true }) - @IsOptional() + @ApiProperty() @IsString() - @Column({ type: "string", required: false, nullable: true }) - project?: string; + @Column({ type: "string" }) + project: string; - @ApiProperty({ type: "string", required: false, nullable: true }) - @IsOptional() + @ApiProperty() @IsString() - @Column({ type: "string", required: false, nullable: true }) - expectations?: string; + @Column({ type: "string" }) + expectations: string; @ApiProperty({ type: "boolean", @@ -153,11 +149,10 @@ export class Registration extends Entity { @Column({ type: "integer" }) time: number; - @ApiProperty({ type: "string", required: false, nullable: true }) - @IsOptional() + @ApiProperty() @IsString() - @Column({ type: "string", required: false, nullable: true }) - excitement?: string; + @Column({ type: "string" }) + excitement: string; @ApiProperty({ type: "string", required: false, nullable: true }) @IsOptional()