Skip to content

Commit

Permalink
Shorten JSON serialization slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
Xilophor committed Feb 18, 2024
1 parent cfb9eeb commit 9272bca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LobbyCompatibility/Models/PluginInfoRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ namespace LobbyCompatibility.Models;
/// <param name="VersionStrictness"> The version strictness of the plugin. </param>
[Serializable]
public record PluginInfoRecord(
[property:JsonProperty("id")]
[property:JsonProperty("i")]
string GUID,

[property:JsonProperty("v")]
[property: JsonConverter(typeof(VersionConverter))]
Version Version,

[property:JsonProperty("cl")]
[property:JsonProperty("c")]
CompatibilityLevel? CompatibilityLevel,

[property:JsonProperty("vs")]
[property:JsonProperty("s")]
VersionStrictness? VersionStrictness
);

0 comments on commit 9272bca

Please sign in to comment.