IJsonSchemaResultsCollector.EvaluatedKeywordPath Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Overloads
| Method | Description |
|---|---|
| EvaluatedKeywordPath(bool, JsonSchemaMessageProvider, JsonSchemaPathProvider) | Updates the match state for the given evaluated keyword. |
| EvaluatedKeywordPath(bool, TProviderContext, JsonSchemaMessageProvider<TProviderContext>, JsonSchemaPathProvider<TProviderContext>) | Updates the match state for the given evaluated keyword. |
EvaluatedKeywordPath(bool, JsonSchemaMessageProvider, JsonSchemaPathProvider)
Source: IJsonSchemaResultsCollector.cs
Updates the match state for the given evaluated keyword.
public abstract void EvaluatedKeywordPath(bool isMatch, JsonSchemaMessageProvider messageProvider, JsonSchemaPathProvider encodedKeywordPath)
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. |
encodedKeywordPath |
JsonSchemaPathProvider |
The keyword and its sub-path that was evaluated. |
Remarks
This is used when the entity evaluated was a sub-element of the keyword (e.g. the index of the first name in the array for the required keyword, would produce required/0 as the encodedKeywordPath).
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
EvaluatedKeywordPath(bool, TProviderContext, JsonSchemaMessageProvider<TProviderContext>, JsonSchemaPathProvider<TProviderContext>)
Source: IJsonSchemaResultsCollector.cs
Updates the match state for the given evaluated keyword.
public abstract void EvaluatedKeywordPath<TProviderContext>(bool isMatch, TProviderContext providerContext, JsonSchemaMessageProvider<TProviderContext> messageProvider, JsonSchemaPathProvider<TProviderContext> encodedKeywordPath)
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. |
encodedKeywordPath |
JsonSchemaPathProvider<TProviderContext> |
The keyword and its sub-path that was evaluated. |
Remarks
This is used when the entity evaluated was a sub-element of the keyword (e.g. the index of the first name in the array for the required keyword, would produce required/0 as the encodedKeywordPath).
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