Skip to content

Commit

Permalink
adds NullValueHandling to ignore response null values
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraRodgers committed Jun 29, 2023
1 parent e95a19b commit 25e7303
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Deepgram/Transcription/PrerecordedTranscriptionResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class PrerecordedTranscriptionResult
/// <summary>
/// Summary of Transcription.
/// </summary>
[JsonProperty("summary")]
[JsonProperty("summary", NullValueHandling=NullValueHandling.Ignore)]
public Summary Summary { get; set; }
}
}
6 changes: 4 additions & 2 deletions Deepgram/Transcription/Summary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class Summary
/// <summary>
/// Summary of a section of the transcript
/// </summary>
[JsonProperty("summary")]
[JsonProperty("summary", NullValueHandling=NullValueHandling.Ignore)]
public string TextSummary { get; set; }

/// <summary>
Expand All @@ -26,8 +26,10 @@ public class Summary
/// <summary>
/// Array of Channel objects.
/// </summary>
[JsonProperty("short")]
[JsonProperty("short", NullValueHandling=NullValueHandling.Ignore)]
public string Short { get; set; }

}
}


0 comments on commit 25e7303

Please sign in to comment.