From 0573ce4e08eb111468104e30def622c0316a38aa Mon Sep 17 00:00:00 2001 From: David Mehren Date: Thu, 29 Apr 2021 16:13:54 +0200 Subject: [PATCH] FrontendConfig DTOs: Make properties consistently optional Some properties already have a IsOptional decorator, this makes the properties themselves also optional Signed-off-by: David Mehren --- src/frontend-config/frontend-config.dto.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/frontend-config/frontend-config.dto.ts b/src/frontend-config/frontend-config.dto.ts index 057dacb32..e2b54ac07 100644 --- a/src/frontend-config/frontend-config.dto.ts +++ b/src/frontend-config/frontend-config.dto.ts @@ -84,7 +84,7 @@ export class BrandingDto { */ @IsString() @IsOptional() - name: string; + name?: string; /** * The logo to be displayed next to the HedgeDoc logo @@ -92,7 +92,7 @@ export class BrandingDto { */ @IsUrl() @IsOptional() - logo: URL; + logo?: URL; } export class CustomAuthEntry { @@ -148,7 +148,7 @@ export class SpecialUrlsDto { */ @IsUrl() @IsOptional() - privacy: URL; + privacy?: URL; /** * A link to the terms of use @@ -156,7 +156,7 @@ export class SpecialUrlsDto { */ @IsUrl() @IsOptional() - termsOfUse: URL; + termsOfUse?: URL; /** * A link to the imprint @@ -164,7 +164,7 @@ export class SpecialUrlsDto { */ @IsUrl() @IsOptional() - imprint: URL; + imprint?: URL; } export class IframeCommunicationDto { @@ -174,7 +174,7 @@ export class IframeCommunicationDto { */ @IsUrl() @IsOptional() - editorOrigin: URL; + editorOrigin?: URL; /** * The origin under which the renderer page will be served @@ -182,7 +182,7 @@ export class IframeCommunicationDto { */ @IsUrl() @IsOptional() - rendererOrigin: URL; + rendererOrigin?: URL; } export class FrontendConfigDto { @@ -239,7 +239,7 @@ export class FrontendConfigDto { */ @IsUrl() @IsOptional() - plantUmlServer: URL; + plantUmlServer?: URL; /** * The maximal length of each document