Open Al12rs opened 2 months ago
This can be seen in the NexusMods App code for Mod.cs model, specifically for the optional Version attribute: https://github.com/Nexus-Mods/NexusMods.App/blob/727c0eecff6d2745b3e44557ee6e59f7e853a19d/src/Abstractions/NexusMods.Abstractions.Loadouts/Mods/Mod.cs#L44
The generated Version property of the ReadOnly model returns string rather than nullable string?.
Version
string
string?
public string Version => NexusMods.Abstractions.Loadouts.Mods.Mod.Version.Get(this);
Implementation for optional attributes should probably be something like this:
return OptionalAttribute.TryGet(this, out var value) ? value : default;
Effort = 3
This can be seen in the NexusMods App code for Mod.cs model, specifically for the optional Version attribute: https://github.com/Nexus-Mods/NexusMods.App/blob/727c0eecff6d2745b3e44557ee6e59f7e853a19d/src/Abstractions/NexusMods.Abstractions.Loadouts/Mods/Mod.cs#L44
The generated
Version
property of the ReadOnly model returnsstring
rather than nullablestring?
.