Share via


RestApiOperationResponseExtensions.IsValid(RestApiOperationResponse) Method

Definition

Validates the response content against the schema.

public static bool IsValid (this Microsoft.SemanticKernel.RestApiOperationResponse response);
static member IsValid : Microsoft.SemanticKernel.RestApiOperationResponse -> bool
<Extension()>
Public Function IsValid (response As RestApiOperationResponse) As Boolean

Parameters

Returns

True if the response is valid, false otherwise.

Remarks

If the schema is not specified, the response is considered valid. If the content type is not specified, the response is considered valid. If the content type is not supported, the response is considered valid. Right now, only JSON is supported.

Applies to