Share via


OpenApiFunctionExecutionParameters Class

Definition

OpenAPI function execution parameters.

public class OpenApiFunctionExecutionParameters
type OpenApiFunctionExecutionParameters = class
Public Class OpenApiFunctionExecutionParameters
Inheritance
OpenApiFunctionExecutionParameters

Constructors

OpenApiFunctionExecutionParameters(HttpClient, AuthenticateRequestAsyncCallback, Uri, String, Boolean, Boolean, Boolean, IList<String>)

Initializes a new instance of the OpenApiFunctionExecutionParameters class.

Properties

AuthCallback

Callback for adding authentication data to HTTP requests.

EnableDynamicPayload

Determines whether the operation payload is constructed dynamically based on operation payload metadata. If false, the operation payload must be provided via the 'payload' context variable.

EnablePayloadNamespacing

Determines whether payload parameter names are augmented with namespaces. Namespaces prevent naming conflicts by adding the parent parameter name as a prefix, separated by dots. For instance, without namespaces, the 'email' parameter for both the 'sender' and 'receiver' parent parameters would be resolved from the same 'email' argument, which is incorrect. However, by employing namespaces, the parameters 'sender.email' and 'sender.receiver' will be correctly resolved from arguments with the same names.

HttpClient

HttpClient to use for sending HTTP requests.

HttpResponseContentReader

A custom HTTP response content reader. It can be useful when the internal reader for a specific content type is either missing, insufficient, or when custom behavior is desired. For instance, the internal reader for "application/json" HTTP content reads the content as a string. This may not be sufficient in cases where the JSON content is large, streamed chunk by chunk, and needs to be accessed as soon as the first chunk is available. To handle such cases, a custom reader can be provided to read the content as a stream rather than as a string. If the custom reader is not provided, or the reader returns null, the internal reader is used.

IgnoreNonCompliantErrors

Flag indicating whether to ignore non-compliant errors or not. If set to true, the operation execution will not throw exceptions for non-compliant documents. Please note that enabling this option may result in incomplete or inaccurate execution results.

OperationsToExclude

Optional list of HTTP operations to skip when importing the OpenAPI document.

ServerUrlOverride

Override for REST API operation server url.

UserAgent

Optional user agent header value.

Applies to