Skip to content

Commit 5b15456

Browse files
committed
remove deprecated web_url_format version response property
1 parent bffb355 commit 5b15456

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

src/Common/Models/VersionResponse.cs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,21 @@ namespace Ryujinx.Systems.Update.Common;
77

88
public class VersionResponse
99
{
10-
[JsonPropertyName("tag")]
11-
public required string Version { get; set; }
12-
13-
[JsonPropertyName("download_url")]
14-
public required string ArtifactUrl { get; set; }
15-
16-
[JsonPropertyName("web_url")] public string ReleaseUrl => string.Format(ReleaseUrlFormat, Version);
17-
18-
[JsonPropertyName("web_url_format")]
19-
public required string ReleaseUrlFormat { get; set; }
10+
[JsonPropertyName("tag")] public required string Version { get; set; }
11+
12+
[JsonPropertyName("download_url")] public required string ArtifactUrl { get; set; }
13+
14+
[JsonPropertyName("web_url")] public string ReleaseUrl => string.Format(ReleaseUrlFormat, Version);
15+
16+
[JsonIgnore] public string ReleaseUrlFormat { get; set; }
2017
}
2118

2219
public class DownloadLinks
2320
{
2421
[JsonPropertyName("windows")] public required SupportedPlatform Windows { get; init; }
2522
[JsonPropertyName("linux")] public required SupportedPlatform Linux { get; init; }
2623
[JsonPropertyName("linux_appimage")] public required SupportedPlatform LinuxAppImage { get; init; }
24+
2725
// ReSharper disable once InconsistentNaming
2826
[JsonPropertyName("macOS")] public required string MacOS { get; init; }
2927

0 commit comments

Comments
 (0)