Files
Rail_Enterprise/src/RailEnterprise.Core/Data/DataJsonContext.cs
T
Alby96andClaude Opus 5.5 c1a0049bcf
CI / Build e test (pull_request) Successful in 1m20s
CI / Immagine Docker (pull_request) Successful in 37s
Infrastruttura: nome «Rail Enterprise», CI e rilasci su Gitea, documentazione
Il progetto adotta il nome «Rail Enterprise» ovunque (codice RailEnterprise.*,
variabili RE_*, intestazioni RESV/RECL, immagine rail-enterprise-server) per
allinearsi al repository Gitea. Aggiunge Gitea Actions sul modello di Chronos:
CI su PR e main, rilascio da tag con gioco Windows (client Godot + server in
server/), server Windows/Linux e immagine Docker nel registro Gitea, nightly.
Aggiunge i riferimenti visivi 06–09, i modelli di PR e issue, l'ADR 0014 e
aggiorna README (comandi locali), STATE e CLAUDE.md. 120 test verdi.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 11:14:54 +01:00

34 lines
1.3 KiB
C#

using System.Text.Json;
using System.Text.Json.Serialization;
namespace RailEnterprise.Core.Data;
/// <summary>
/// Contesto System.Text.Json generato a compile time per i file dati: niente reflection,
/// proprietà sconosciute vietate (un refuso nel JSON è un errore, non un valore ignorato),
/// enumerazioni come stringhe.
/// </summary>
[JsonSourceGenerationOptions(
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase,
PropertyNameCaseInsensitive = true,
UseStringEnumConverter = true,
ReadCommentHandling = JsonCommentHandling.Disallow,
AllowTrailingCommas = false,
UnmappedMemberHandling = JsonUnmappedMemberHandling.Disallow,
NumberHandling = JsonNumberHandling.Strict,
WriteIndented = true)]
[JsonSerializable(typeof(GoodsFile))]
[JsonSerializable(typeof(IndustriesFile))]
[JsonSerializable(typeof(VehiclesFile))]
[JsonSerializable(typeof(ErasFile))]
[JsonSerializable(typeof(TiersFile))]
[JsonSerializable(typeof(BalanceFile))]
[JsonSerializable(typeof(DifficultyFile))]
[JsonSerializable(typeof(ConstructionFile))]
[JsonSerializable(typeof(MaintenanceFile))]
[JsonSerializable(typeof(AiFile))]
[JsonSerializable(typeof(ContractsFile))]
[JsonSerializable(typeof(RegionsFile))]
[JsonSerializable(typeof(DifficultyDef))]
public sealed partial class DataJsonContext : JsonSerializerContext;