Skip to content

Commit

Permalink
EW-644 modifed schulconnex error
Browse files Browse the repository at this point in the history
  • Loading branch information
Fshmit committed Nov 17, 2023
1 parent 6abf621 commit d425ccd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/shared/error/schulconnex-validation-error.filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { HttpArgumentsHost } from '@nestjs/common/interfaces/index.js';
import { Response } from 'express';

export type SchulConnexError = {
statusCode?: number;
statusCode: number;
subCode: string;
title: string;
description: string;
Expand Down
1 change: 0 additions & 1 deletion src/shared/validation/global-validation.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class GlobalValidationPipe extends ValidationPipe {
whitelist: true, // only pass valid @ApiProperty-decorated DTO properties, remove others
forbidNonWhitelisted: false, // additional params are just skipped (required when extracting multiple DTO from single query)
forbidUnknownValues: true,
// TODO: create types for the exception factory: EW-???
exceptionFactory: (errors: ValidationError[]) => new DetailedValidationError(errors),
});
}
Expand Down

0 comments on commit d425ccd

Please sign in to comment.