Generated the JSON contracts of the stored data at compile time (#1148)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-02 18:23:19 +01:00
1 parent fc7399e81b
commit e954881fda
75 files changed
+5437 -298

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
using System.Text.Json;
namespace AIStudio.Tests.Serialization;
/// <summary>
/// A type which AI Studio reads or writes as JSON on its own, together with the options it uses for that.
/// </summary>
/// <param name="Type">The type which gets serialized. Whatever it holds gets checked along with it.</param>
/// <param name="Options">The options AI Studio passes to System.Text.Json for this type.</param>
public sealed record JsonTestRoot(Type Type, JsonSerializerOptions Options)
{
/// <inheritdoc />
public override string ToString() => JsonContractDescription.TypeName(this.Type);
}