Skip to content

IJsonSchemaResultsCollector.EvaluatedKeyword Method

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll

Overloads

Method Description
EvaluatedKeyword(bool, JsonSchemaMessageProvider, ReadOnlySpan<byte>) Updates the match state for the given evaluated keyword.
EvaluatedKeyword(bool, TProviderContext, JsonSchemaMessageProvider<TProviderContext>, ReadOnlySpan<byte>) Updates the match state for the given evaluated keyword.

EvaluatedKeyword(bool, JsonSchemaMessageProvider, ReadOnlySpan<byte>)

Source: IJsonSchemaResultsCollector.cs

Updates the match state for the given evaluated keyword.

public abstract void EvaluatedKeyword(bool isMatch, JsonSchemaMessageProvider messageProvider, ReadOnlySpan<byte> encodedKeyword)

Parameters

Name Type Description
isMatch bool If true then this indicates that the current context produced a successful match.
messageProvider JsonSchemaMessageProvider The (optional) provider for a JSON schema evaluation message.
encodedKeyword ReadOnlySpan<byte> The keyword that was evaluated.

Applies To

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

EvaluatedKeyword(bool, TProviderContext, JsonSchemaMessageProvider<TProviderContext>, ReadOnlySpan<byte>)

Source: IJsonSchemaResultsCollector.cs

Updates the match state for the given evaluated keyword.

public abstract void EvaluatedKeyword<TProviderContext>(bool isMatch, TProviderContext providerContext, JsonSchemaMessageProvider<TProviderContext> messageProvider, ReadOnlySpan<byte> encodedKeyword)

Parameters

Name Type Description
isMatch bool If true then this indicates that the current context produced a successful match.
providerContext TProviderContext The context to provide to the providers.
messageProvider JsonSchemaMessageProvider<TProviderContext> The (optional) provider for a JSON schema evaluation message.
encodedKeyword ReadOnlySpan<byte> The keyword that was evaluated.

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