Skip to content

Commit

Permalink
Hdf: SourceLocation's Line and Ref are optional
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Andrews <[email protected]>
  • Loading branch information
candrews committed Jul 28, 2023
1 parent c6e7b20 commit f484805
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Sarif.Converters/HdfModel/SourceLocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ public partial class SourceLocation
/// <summary>
/// The line at which this statement is located in the file
/// </summary>
[JsonProperty("line", Required = Required.Default)]
public double Line { get; set; }
[JsonProperty("line", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public int? Line { get; set; }

/// <summary>
/// Path to the file that this statement originates from
/// </summary>
[JsonProperty("ref", Required = Required.Default)]
[JsonProperty("ref", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public string Ref { get; set; }
}
}

0 comments on commit f484805

Please sign in to comment.