From 08561c749f732757794447a543b6385ba9666f9b Mon Sep 17 00:00:00 2001 From: Gadi Cohen Date: Wed, 3 Feb 2021 07:46:01 +0200 Subject: [PATCH] fix(quoteSummary/assetProfile): make *Risk fields optional --- schema.json | 6 ------ src/modules/quoteSummary-iface.ts | 12 ++++++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/schema.json b/schema.json index 76bce75b..ef69af2e 100644 --- a/schema.json +++ b/schema.json @@ -96,12 +96,6 @@ "longBusinessSummary", "fullTimeEmployees", "companyOfficers", - "auditRisk", - "boardRisk", - "compensationRisk", - "shareHolderRightsRisk", - "overallRisk", - "governanceEpochDate", "maxAge" ], "type": "object" diff --git a/src/modules/quoteSummary-iface.ts b/src/modules/quoteSummary-iface.ts index ff66559a..4be076ba 100644 --- a/src/modules/quoteSummary-iface.ts +++ b/src/modules/quoteSummary-iface.ts @@ -57,12 +57,12 @@ export interface AssetProfile { longBusinessSummary: string; fullTimeEmployees: number; companyOfficers: CompanyOfficer[]; - auditRisk: number; - boardRisk: number; - compensationRisk: number; - shareHolderRightsRisk: number; - overallRisk: number; - governanceEpochDate: Date; + auditRisk?: number; + boardRisk?: number; + compensationRisk?: number; + shareHolderRightsRisk?: number; + overallRisk?: number; + governanceEpochDate?: Date; compensationAsOfEpochDate?: Date; maxAge: number; address2?: string;