Adopted further C# 14 and .NET 10 features (#1158)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-04 14:04:10 +01:00
1 parent f649febf88
commit f0fa1411c8
40 files changed
+545 -56

No files matched your search

@@ -14,12 +14,20 @@ internal sealed class LauncherTextsResponse
{
public const string SCHEMA_VERSION_VALUE = "assistant_builder_launcher_texts_v1";
/// <summary>
/// How the answer of the model is read.
/// </summary>
/// <remarks>
/// An answer which names a field twice leaves open which of the values the model meant, so it is
/// refused like any other invalid JSON.
/// </remarks>
internal static readonly JsonSerializerOptions JSON_OPTIONS = new JsonSerializerOptions
{
PropertyNamingPolicy = JsonNamingPolicy.SnakeCaseLower,
AllowTrailingCommas = false,
ReadCommentHandling = JsonCommentHandling.Disallow,
MaxDepth = 8,
AllowDuplicateProperties = false,
TypeInfoResolver = LauncherTextsResponseJsonContext.Default,
}.AsReadOnly();