Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ partial void ProcessQueryRedisCacheByPatternV1AdminQueryRedisCacheByPatternPostR
pathTemplate: "\"/v1/admin/query_redis_cache_by_pattern\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -212,7 +212,7 @@ partial void ProcessQueryRedisCacheByPatternV1AdminQueryRedisCacheByPatternPostR
pathTemplate: "\"/v1/admin/query_redis_cache_by_pattern\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
Expand Down Expand Up @@ -253,7 +253,7 @@ partial void ProcessQueryRedisCacheByPatternV1AdminQueryRedisCacheByPatternPostR
pathTemplate: "\"/v1/admin/query_redis_cache_by_pattern\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -301,7 +301,7 @@ partial void ProcessQueryRedisCacheByPatternV1AdminQueryRedisCacheByPatternPostR
pathTemplate: "\"/v1/admin/query_redis_cache_by_pattern\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand All @@ -323,7 +323,7 @@ partial void ProcessQueryRedisCacheByPatternV1AdminQueryRedisCacheByPatternPostR
pathTemplate: "\"/v1/admin/query_redis_cache_by_pattern\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ partial void ProcessAgenticBrowserV2V1WorkflowsExecutePostResponseContent(
pathTemplate: "\"/v1/workflows/execute\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -212,7 +212,7 @@ partial void ProcessAgenticBrowserV2V1WorkflowsExecutePostResponseContent(
pathTemplate: "\"/v1/workflows/execute\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
Expand Down Expand Up @@ -253,7 +253,7 @@ partial void ProcessAgenticBrowserV2V1WorkflowsExecutePostResponseContent(
pathTemplate: "\"/v1/workflows/execute\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -301,7 +301,7 @@ partial void ProcessAgenticBrowserV2V1WorkflowsExecutePostResponseContent(
pathTemplate: "\"/v1/workflows/execute\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand All @@ -323,7 +323,7 @@ partial void ProcessAgenticBrowserV2V1WorkflowsExecutePostResponseContent(
pathTemplate: "\"/v1/workflows/execute\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ partial void ProcessAgenticScrapperV1AgenticScrapperPostResponseContent(
pathTemplate: "\"/v1/agentic-scrapper\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -212,7 +212,7 @@ partial void ProcessAgenticScrapperV1AgenticScrapperPostResponseContent(
pathTemplate: "\"/v1/agentic-scrapper\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
Expand Down Expand Up @@ -253,7 +253,7 @@ partial void ProcessAgenticScrapperV1AgenticScrapperPostResponseContent(
pathTemplate: "\"/v1/agentic-scrapper\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -301,7 +301,7 @@ partial void ProcessAgenticScrapperV1AgenticScrapperPostResponseContent(
pathTemplate: "\"/v1/agentic-scrapper\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand All @@ -323,7 +323,7 @@ partial void ProcessAgenticScrapperV1AgenticScrapperPostResponseContent(
pathTemplate: "\"/v1/agentic-scrapper\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ partial void ProcessGetLiveSessionUrlV1GetLiveSessionUrlPostResponseContent(
pathTemplate: "\"/v1/get-live-session-url\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -212,7 +212,7 @@ partial void ProcessGetLiveSessionUrlV1GetLiveSessionUrlPostResponseContent(
pathTemplate: "\"/v1/get-live-session-url\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
Expand Down Expand Up @@ -253,7 +253,7 @@ partial void ProcessGetLiveSessionUrlV1GetLiveSessionUrlPostResponseContent(
pathTemplate: "\"/v1/get-live-session-url\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -301,7 +301,7 @@ partial void ProcessGetLiveSessionUrlV1GetLiveSessionUrlPostResponseContent(
pathTemplate: "\"/v1/get-live-session-url\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand All @@ -323,7 +323,7 @@ partial void ProcessGetLiveSessionUrlV1GetLiveSessionUrlPostResponseContent(
pathTemplate: "\"/v1/get-live-session-url\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ partial void ProcessStopSessionV1StopSessionPostResponseContent(
pathTemplate: "\"/v1/stop-session\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -212,7 +212,7 @@ partial void ProcessStopSessionV1StopSessionPostResponseContent(
pathTemplate: "\"/v1/stop-session\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
Expand Down Expand Up @@ -253,7 +253,7 @@ partial void ProcessStopSessionV1StopSessionPostResponseContent(
pathTemplate: "\"/v1/stop-session\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -301,7 +301,7 @@ partial void ProcessStopSessionV1StopSessionPostResponseContent(
pathTemplate: "\"/v1/stop-session\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand All @@ -323,7 +323,7 @@ partial void ProcessStopSessionV1StopSessionPostResponseContent(
pathTemplate: "\"/v1/stop-session\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down
32 changes: 16 additions & 16 deletions src/libs/ScrapeGraphAI/Generated/ScrapeGraphAI.AnyOf.2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public bool TryPickValue1(
/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
public T1 PickValue1() => Value1 is { } value
? value
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
Expand Down Expand Up @@ -78,8 +78,8 @@ public bool TryPickValue2(
/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
public T2 PickValue2() => Value2 is { } value
? value
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");
/// <summary>
///
Expand Down Expand Up @@ -176,13 +176,13 @@ public bool Validate()
Validate();
}

if (IsValue1 && value1 != null)
if (Value1 is { } __value0 && value1 != null)
{
return value1(Value1!);
return value1(__value0);
}
else if (IsValue2 && value2 != null)
else if (Value2 is { } __value1 && value2 != null)
{
return value2(Value2!);
return value2(__value1);
}

return default(TResult);
Expand All @@ -202,13 +202,13 @@ public void Match(
Validate();
}

if (IsValue1)
if (Value1 is { } __value0)
{
value1?.Invoke(Value1!);
value1?.Invoke(__value0);
}
else if (IsValue2)
else if (Value2 is { } __value1)
{
value2?.Invoke(Value2!);
value2?.Invoke(__value1);
}
}

Expand All @@ -225,13 +225,13 @@ public void Switch(
Validate();
}

if (IsValue1)
if (Value1 is { } __value0)
{
value1?.Invoke(Value1!);
value1?.Invoke(__value0);
}
else if (IsValue2)
else if (Value2 is { } __value1)
{
value2?.Invoke(Value2!);
value2?.Invoke(__value1);
}
}

Expand Down
Loading
Loading