RestApiOperationResponseExtensions.IsValid(RestApiOperationResponse) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- response
- RestApiOperationResponse
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.