Share via


RestApiOperationExpectedResponse(String, String, KernelJsonSchema) Constructor

Definition

Initializes a new instance of the RestApiOperationResponse class.

public RestApiOperationExpectedResponse (string description, string mediaType, Microsoft.SemanticKernel.KernelJsonSchema? schema = default);
new Microsoft.SemanticKernel.Plugins.OpenApi.RestApiOperationExpectedResponse : string * string * Microsoft.SemanticKernel.KernelJsonSchema -> Microsoft.SemanticKernel.Plugins.OpenApi.RestApiOperationExpectedResponse
Public Sub New (description As String, mediaType As String, Optional schema As KernelJsonSchema = Nothing)

Parameters

description
String

The description of the response.

mediaType
String

The media type of the response.

schema
KernelJsonSchema

The schema against which the response body should be validated.

Applies to