Skip to content

Commit a36498a

Browse files
authored
Add expectedValue and actualValue to CxIacResult parsing (#889)
1 parent 31bc7e7 commit a36498a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/iacRealtime/CxIac.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export default class CxIacResult {
66
similarityID: string;
77
filepath: string;
88
severity: CxRealtimeEngineStatus;
9+
expectedValue: string;
10+
actualValue: string;
911
locations: { line: number, startIndex: number, endIndex: number }[];
1012

1113
static parseResult(resultObject: any): CxIacResult[] {
@@ -18,6 +20,8 @@ export default class CxIacResult {
1820
iacResult.similarityID = member.SimilarityID;
1921
iacResult.filepath = member.FilePath;
2022
iacResult.severity = member.Severity as CxRealtimeEngineStatus;
23+
iacResult.expectedValue = member.ExpectedValue;
24+
iacResult.actualValue = member.ActualValue;
2125
iacResult.locations = Array.isArray(member.Locations)
2226
? member.Locations.map((l: any) => ({
2327
line: l.Line,

0 commit comments

Comments
 (0)