mirror of
http://172.20.10.11:3000/gitadmin/INSIGHT-MVP.git
synced 2026-06-25 00:16:41 +02:00
fix(expert-profile): Sprachniveau-Validierung mit Frontend-Werten synchronisieren
Backend @IsIn erlaubte nur CEFR-Codes (C1/C2/B2…), Frontend schickte aber deutsche Bezeichnungen (Verhandlungssicher/Fließend/Gut). Alle 4 Frontend-Level + CEFR-Codes für Rückwärtskompatibilität aufgenommen. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
6c51eb5e83
commit
2078a90fba
1 changed files with 3 additions and 3 deletions
|
|
@ -8,10 +8,10 @@ export class CreateLanguageDto {
|
|||
language!: string;
|
||||
|
||||
@ApiProperty({
|
||||
example: 'Muttersprache',
|
||||
enum: ['Muttersprache', 'C2', 'C1', 'B2', 'B1', 'A2', 'A1'],
|
||||
example: 'Verhandlungssicher',
|
||||
enum: ['Muttersprache', 'Verhandlungssicher', 'Fließend', 'Gut', 'C2', 'C1', 'B2', 'B1', 'A2', 'A1'],
|
||||
})
|
||||
@IsString()
|
||||
@IsIn(['Muttersprache', 'C2', 'C1', 'B2', 'B1', 'A2', 'A1'])
|
||||
@IsIn(['Muttersprache', 'Verhandlungssicher', 'Fließend', 'Gut', 'C2', 'C1', 'B2', 'B1', 'A2', 'A1'])
|
||||
level!: string;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue