File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -60,14 +60,17 @@ internal sealed class PoolClaimRequestDto
6060 [ JsonPropertyName ( "action" ) ]
6161 public string Action { get ; set ; } = "request" ;
6262
63+ /// <summary>Omit when null so JSON has no <c>workerId</c> key — avoids APIs that treat explicit null as invalid.</summary>
6364 [ JsonPropertyName ( "workerId" ) ]
65+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
6466 public string ? WorkerId { get ; set ; }
6567
6668 /// <summary>
6769 /// Optional: target a specific filter ("GIMMIE WORK FOR FILTER:X").
68- /// If null, server picks whatever active session needs help most ("GIMMIE WORK") .
70+ /// If null, omit property — server picks any active session; explicit JSON null breaks some Zod schemas .
6971 /// </summary>
7072 [ JsonPropertyName ( "filterId" ) ]
73+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
7174 public string ? FilterId { get ; set ; }
7275
7376 [ JsonPropertyName ( "estimatedBlocks" ) ]
You can’t perform that action at this time.
0 commit comments