Modified CloudflareResponse to fit real responses

This commit is contained in:
2025-06-26 11:05:50 +02:00
parent 682f25ae75
commit 2e451bcdab
7 changed files with 15 additions and 33 deletions

View File

@@ -10,13 +10,13 @@
/// Errors returned by the API call.
/// </summary>
[JsonProperty("errors")]
public IReadOnlyList<ResponseInfo> Errors { get; set; } = [];
public IReadOnlyCollection<ResponseInfo>? Errors { get; set; }
/// <summary>
/// Messages returned by the API call.
/// </summary>
[JsonProperty("messages")]
public IReadOnlyList<ResponseInfo> Messages { get; set; } = [];
public IReadOnlyCollection<ResponseInfo>? Messages { get; set; }
/// <summary>
/// Whether the API call was successful.