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

+15
View File
@@ -0,0 +1,15 @@
using System.Text.Json;
namespace AIStudio.Tests.Serialization;
/// <summary>
/// A stored file in the fixtures, together with the type and the options AI Studio reads it with.
/// </summary>
/// <param name="FileName">The name of the file in the folder Fixtures next to the tests.</param>
/// <param name="Type">The type AI Studio reads the file as.</param>
/// <param name="Options">The options AI Studio reads and writes the file with.</param>
public sealed record JsonGoldenFile(string FileName, Type Type, JsonSerializerOptions Options)
{
/// <inheritdoc />
public override string ToString() => this.FileName;
}