Skip to content

Commit

Permalink
feat: add license property to evidencecode (#150)
Browse files Browse the repository at this point in the history
* feat: add license property to evidencecode

* feat: add description to servicecontext

* update casing on servicecontext
  • Loading branch information
SondreJDigdir authored Jan 14, 2025
1 parent 1f2125f commit 98cfeee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions Dan.Common/Models/EvidenceCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,11 @@ public class EvidenceCode
[DataMember(Name = "timeout")]
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public int? Timeout { get; set; }

/// <summary>
/// License of the evidence source data
/// </summary>
[DataMember(Name = "license")]
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string? License { get; set; }
}
7 changes: 5 additions & 2 deletions Dan.Common/Models/ServiceContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ namespace Dan.Common.Models;
[DataContract]
public class ServiceContext
{
[DataMember(Name = "Name")]
[DataMember(Name = "name")]
public string Name { get; set; } = string.Empty;

[DataMember(Name = "Id")]
[DataMember(Name = "id")]
public string Id { get; set; } = string.Empty;

[DataMember(Name = "description")]
public string? Description { get; set; }

[DataMember(Name = "validLanguages")]
public List<string> ValidLanguages { get; set; } = new();
Expand Down

0 comments on commit 98cfeee

Please sign in to comment.