using System.Text.Json.Serialization; namespace Titano.Core.Analysis.Deep; /// Source-generated JSON for analysis.json and the database summary: compact, camelCase, enums as names. [JsonSourceGenerationOptions( PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, UseStringEnumConverter = true, PropertyNameCaseInsensitive = true)] [JsonSerializable(typeof(DeepAnalysisReport))] [JsonSerializable(typeof(AnalysisSummary))] internal sealed partial class DeepAnalysisJson : JsonSerializerContext; /// Checkpoint lines: exact doubles, NaN written as a literal so unmeasured values survive a resume. [JsonSourceGenerationOptions( PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase, NumberHandling = JsonNumberHandling.AllowNamedFloatingPointLiterals, UseStringEnumConverter = true)] [JsonSerializable(typeof(DeepFrame))] [JsonSerializable(typeof(CheckpointHeader))] internal sealed partial class DeepCheckpointJson : JsonSerializerContext; /// First line of a checkpoint file. internal sealed record CheckpointHeader(string Fingerprint);