refactor: remove redundant System.Text.Json attributes from models

The codebase uses Newtonsoft.Json (JObject.Parse + ToObject<T>) exclusively.
Removed all [JsonPropertyName] attributes and [System.Text.Json.Serialization.
JsonIgnore] attributes from 41 model files, along with the now-unused
using System.Text.Json.Serialization imports. [JsonProperty] (Newtonsoft)
attributes remain as the sole serialization annotations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Clint Branham
2026-03-22 08:15:23 -05:00
parent 5895e9abd2
commit 0532327d46
41 changed files with 0 additions and 422 deletions
@@ -1,4 +1,3 @@
using System.Text.Json.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
@@ -12,14 +11,12 @@ public class PvePool
/// <summary>
/// The pool identifier.
/// </summary>
[JsonPropertyName("poolid")]
[JsonProperty("poolid")]
public string? PoolId { get; set; }
/// <summary>
/// An optional comment or description for the pool.
/// </summary>
[JsonPropertyName("comment")]
[JsonProperty("comment")]
public string? Comment { get; set; }
@@ -27,7 +24,6 @@ public class PvePool
/// The pool members (VMs, containers, storage). Returned as a raw array
/// when querying a specific pool.
/// </summary>
[JsonPropertyName("members")]
[JsonProperty("members")]
public JArray? Members { get; set; }