Skip to content

JsonElement.EvaluateSchema Method

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonElement.JsonSchema.cs

EvaluateSchema(IJsonSchemaResultsCollector)

Evaluates the JSON Schema for this element.

public bool EvaluateSchema(IJsonSchemaResultsCollector resultsCollector)

Parameters

Name Type Description
resultsCollector IJsonSchemaResultsCollector The (optional) results collector for schema validation. (optional)

Returns

bool

true if the element is valid according to its schema; otherwise, false.

Implements

IJsonElement.EvaluateSchema

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue