Improved JSON naming

This commit is contained in:
Thorsten Sommer 2024-08-29 09:03:54 +02:00
parent 2c48ef950c
commit 54c2cd3740
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -1,5 +1,3 @@
using System.Text.Json.Serialization;
namespace AIStudio.Tools.Rust; namespace AIStudio.Tools.Rust;
/// <summary> /// <summary>
@ -9,8 +7,8 @@ namespace AIStudio.Tools.Rust;
/// <param name="NewVersion">The new version, when available.</param> /// <param name="NewVersion">The new version, when available.</param>
/// <param name="Changelog">The changelog of the new version, when available.</param> /// <param name="Changelog">The changelog of the new version, when available.</param>
public readonly record struct UpdateResponse( public readonly record struct UpdateResponse(
[property:JsonPropertyName("update_is_available")] bool UpdateIsAvailable, bool UpdateIsAvailable,
[property:JsonPropertyName("error")] bool Error, bool Error,
[property:JsonPropertyName("new_version")] string NewVersion, string NewVersion,
string Changelog string Changelog
); );