Namespace: Json.Schema
Inheritance: EvaluationOptions 🡒 object
Allows configuration of the evaluation process.
Properties
| Name | Type | Summary |
|---|---|---|
| AddAnnotationForUnknownKeywords | bool | Outputs an annotation that lists any unknown keywords. Can be useful for catching typos. |
| Culture | CultureInfo | Gets or sets the culture for error messages. Overrides Json.Schema.ErrorMessages.Culture. |
| Default | EvaluationOptions | The default settings. |
| FormatRegistry | FormatRegistry | The local format registry. If a format is not found here, it will automatically check the global registry as well. |
| IgnoredAnnotations | IEnumerable<Type> | Gets the set of keyword types from which annotations will be ignored. |
| OutputFormat | OutputFormat | Specifies the output format. |
| PreserveDroppedAnnotations | bool | If enabled, annotations that are dropped as a result of a failing subschema will be reported in a droppedAnnotations property in the output. |
| RequireFormatValidation | bool | Specifies whether the format keyword should be required to provide validation results. Default is false, which just produces annotations for drafts 2019-09 and prior or follows the behavior set forth by the format-annotation vocabulary requirement in the $vocabulary keyword in a meta-schema declaring draft 2020-12. |
Methods
ClearIgnoredAnnotations()
Clears ignored annotations.
Declaration
1
public void ClearIgnoredAnnotations()
CollectAnnotationsFrom()
Restores annotation collection for the specified keyword.
Declaration
1
public void CollectAnnotationsFrom()
From(EvaluationOptions other)
Creates a deep copy of the options.
Declaration
1
public static EvaluationOptions From(EvaluationOptions other)
| Parameter | Type | Description |
|---|---|---|
| other | EvaluationOptions | The source options. |
Returns
A new options instance with the same settings.
IgnoreAllAnnotations()
Ignores annotations from all keywords.
Declaration
1
public void IgnoreAllAnnotations()
IgnoreAnnotationsFrom()
Ignores annotations from the specified keyword.
Declaration
1
public void IgnoreAnnotationsFrom()