mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-08-20 18:02:16 +00:00
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:
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user