Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Datra.SampleData/Datra.SampleData.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"Newtonsoft.Json.dll",
"YamlDotNet.dll"
],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
}
2 changes: 1 addition & 1 deletion Datra/Converters/PolymorphicYamlSupport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Datra.Converters
{
/// <summary>
/// Resolves type names to Type objects, similar to PortableTypeBinder for JSON.
/// Resolves type names to Type objects for legacy YAML polymorphism.
/// Enables YAML portability across different assembly configurations.
/// </summary>
public class PortableTypeResolver
Expand Down
3 changes: 1 addition & 2 deletions Datra/Datra.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"Newtonsoft.Json.dll",
"YamlDotNet.dll"
],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
}
2 changes: 1 addition & 1 deletion Datra/Repositories/DeepCloner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ private static JsonSerializerOptions CreateOptions()
var opts = new JsonSerializerOptions
{
DefaultIgnoreCondition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
// Match Newtonsoft round-trip semantics: Datra data classes occasionally expose
// Match Datra's legacy round-trip semantics: Datra data classes occasionally expose
// public fields (e.g. PooledPrefab.Path). STJ excludes fields by default — turning
// it on keeps DeepCloner.Clone behaviourally compatible.
IncludeFields = true,
Expand Down
2 changes: 1 addition & 1 deletion Datra/Serializers/DatraJsonHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Datra.Serializers
{
/// <summary>
/// STJ option helpers that re-create Datra's Newtonsoft-era contract semantics.
/// STJ option helpers that re-create Datra's legacy JSON contract semantics.
/// </summary>
internal static class DatraJsonHelpers
{
Expand Down
Loading