0.27.5 release

This commit is contained in:
sanex3339
2020-04-25 09:49:44 +03:00
parent d9bc590de3
commit 87bf2096cc
9 changed files with 165 additions and 113 deletions
+5 -1
View File
@@ -24,7 +24,11 @@ export class ValidationErrorsFormatter {
* @returns {string}
*/
private static formatWithNestedConstraints (error: ValidationError): string {
const constraints: TObject<string> = error.constraints;
const constraints: TObject<string> | undefined = error.constraints;
if (!constraints) {
return `\`${error.property}\` error\n`;
}
const rootError: string = `\`${error.property}\` errors:\n`;
const nestedErrors: string = Object