Generated the JSON contracts of visual briefings and model answers at compile time (#1151)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-03 14:20:41 +01:00
1 parent 24e3c22db3
commit 770c16e20a
101 files changed
+2333 -392

No files matched your search

@@ -8,13 +8,14 @@ namespace AIStudio.Assistants.SWOTAnalysis;
/// </summary>
internal static class SwotModelAnswer
{
private static readonly JsonSerializerOptions JSON_OPTIONS = new()
internal static readonly JsonSerializerOptions JSON_OPTIONS = new JsonSerializerOptions
{
PropertyNameCaseInsensitive = true,
AllowTrailingCommas = true,
ReadCommentHandling = JsonCommentHandling.Skip,
RespectNullableAnnotations = true,
};
TypeInfoResolver = SwotModelAnswerJsonContext.Default,
}.AsReadOnly();
/// <summary>
/// Reads the JSON object of a model answer into the given type, without checking its content.