Skip to content

Commit

Permalink
Update to v0.1.0-rc2-hotfix5 (#85)
Browse files Browse the repository at this point in the history
* Add NullValueHandling to Cape property in Textures.cs

This change ensures that the Cape property is ignored if its value is null when serializing to JSON. This helps prevent sending unnecessary data and can potentially reduce payload size in API responses.
  • Loading branch information
GamerVII-NET authored Oct 16, 2024
1 parent 2bf85d7 commit a6cc70f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gml.Web.Api.Dto/Minecraft/AuthLib/Textures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ public class Textures
{
[JsonProperty("SKIN")] public SkinCape Skin { get; set; }

[JsonProperty("CAPE")] public SkinCape Cape { get; set; }
[JsonProperty("CAPE", NullValueHandling = NullValueHandling.Ignore)] public SkinCape Cape { get; set; }
}

0 comments on commit a6cc70f

Please sign in to comment.