IJsonSchemaResultsCollector.EvaluatedBooleanSchema Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Overloads
| Method | Description |
|---|---|
| EvaluatedBooleanSchema(bool, JsonSchemaMessageProvider) | Indicates that a boolean schema was evaluated. |
| EvaluatedBooleanSchema(bool, TProviderContext, JsonSchemaMessageProvider<TProviderContext>) | Indicates that a boolean schema was evaluated. |
EvaluatedBooleanSchema(bool, JsonSchemaMessageProvider)
Source: IJsonSchemaResultsCollector.cs
Indicates that a boolean schema was evaluated.
public abstract void EvaluatedBooleanSchema(bool isMatch, JsonSchemaMessageProvider messageProvider)
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. |
Remarks
This is used when evaluating a schema of the form true or false.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
EvaluatedBooleanSchema(bool, TProviderContext, JsonSchemaMessageProvider<TProviderContext>)
Source: IJsonSchemaResultsCollector.cs
Indicates that a boolean schema was evaluated.
public abstract void EvaluatedBooleanSchema<TProviderContext>(bool isMatch, TProviderContext providerContext, JsonSchemaMessageProvider<TProviderContext> messageProvider)
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 message provider. |
messageProvider |
JsonSchemaMessageProvider<TProviderContext> |
The (optional) provider for a JSON schema evaluation message. |
Remarks
This is used when evaluating a schema of the form true or false.
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