diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-02-20 21:32:55 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-02-20 21:32:55 -0500 |
commit | dd27b3bf35d01e4fd0703e47d538bd8cec03652b (patch) | |
tree | 3f3b00c4c1b9cb5fafcfc975e8de7e999b1dc36b /src/SMAPI.Toolkit/Framework/Clients/WebApi/ModEntryVersionModel.cs | |
parent | 6a9bf10a81f4557d44668666117d99440d99d873 (diff) | |
download | SMAPI-dd27b3bf35d01e4fd0703e47d538bd8cec03652b.tar.gz SMAPI-dd27b3bf35d01e4fd0703e47d538bd8cec03652b.tar.bz2 SMAPI-dd27b3bf35d01e4fd0703e47d538bd8cec03652b.zip |
fix parsing four-part versions from the update-check API
Diffstat (limited to 'src/SMAPI.Toolkit/Framework/Clients/WebApi/ModEntryVersionModel.cs')
-rw-r--r-- | src/SMAPI.Toolkit/Framework/Clients/WebApi/ModEntryVersionModel.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/SMAPI.Toolkit/Framework/Clients/WebApi/ModEntryVersionModel.cs b/src/SMAPI.Toolkit/Framework/Clients/WebApi/ModEntryVersionModel.cs index dadb8c10..188db31d 100644 --- a/src/SMAPI.Toolkit/Framework/Clients/WebApi/ModEntryVersionModel.cs +++ b/src/SMAPI.Toolkit/Framework/Clients/WebApi/ModEntryVersionModel.cs @@ -1,3 +1,6 @@ +using Newtonsoft.Json; +using StardewModdingAPI.Toolkit.Serialization.Converters; + namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi { /// <summary>Metadata about a version.</summary> @@ -7,6 +10,7 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi ** Accessors *********/ /// <summary>The version number.</summary> + [JsonConverter(typeof(NonStandardSemanticVersionConverter))] public ISemanticVersion Version { get; set; } /// <summary>The mod page URL.</summary> |