Skip to content

Commit

Permalink
rename location
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Sep 11, 2023
1 parent 429473e commit 6c558ba
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions xray/formats/simplejsonapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ type OperationalRiskViolationRow struct {
type SourceCodeRow struct {
Severity string `json:"severity"`
SeverityNumValue int `json:"-"` // For sorting
SourceCodeLocationRow
Type string `json:"type"`
Finding string `json:"finding,omitempty"`
ScannerDescription string `json:"scannerDescription,omitempty"`
CodeFlow [][]SourceCodeLocationRow `json:"codeFlow,omitempty"`
Location
Type string `json:"type"`
Finding string `json:"finding,omitempty"`
ScannerDescription string `json:"scannerDescription,omitempty"`
CodeFlow [][]Location `json:"codeFlow,omitempty"`
}

type SourceCodeLocationRow struct {
type Location struct {
File string `json:"file"`
StartLine int `json:"startLine,omitempty"`
StartColumn int `json:"startColumn,omitempty"`
Expand Down Expand Up @@ -112,7 +112,7 @@ type Applicability struct {
}

type Evidence struct {
SourceCodeLocationRow
Location
Reason string `json:"reason,omitempty"`
}

Expand Down

0 comments on commit 6c558ba

Please sign in to comment.