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

@@ -12,21 +12,21 @@ public sealed class VisualBriefingControlSpec
{
/// <summary>Gets or sets the globally unique control identifier.</summary>
[JsonRequired]
public string ControlId { get; init; } = string.Empty;
public string ControlId { get; set; } = string.Empty;
/// <summary>Gets or sets the owning component identifier.</summary>
[JsonRequired]
public string ComponentId { get; init; } = string.Empty;
public string ComponentId { get; set; } = string.Empty;
/// <summary>Gets or sets the control kind.</summary>
[JsonRequired]
public VisualBriefingControlKind Kind { get; init; }
public VisualBriefingControlKind Kind { get; set; }
/// <summary>Gets or sets the deterministic initial value.</summary>
[JsonRequired]
public JsonElement InitialValue { get; init; }
public JsonElement InitialValue { get; set; }
/// <summary>Gets or sets the selectable options.</summary>
[JsonRequired]
public List<VisualBriefingControlOption> Options { get; init; } = [];
public List<VisualBriefingControlOption> Options { get; set; } = [];
}