Home JsonSchemaNode Class
JsonSchemaNode Class
Cancel

JsonSchemaNode Class

Namespace: Json.Schema

Inheritance: JsonSchemaNode 🡒 object

Represents a subschema.

Remarks

A JsonSchemaNode provides the context and data necessary for evaluating a subschema against an instance. It supports evaluation of schema logic, including handling of boolean schemas and keyword-based

Properties

NameTypeSummary
BaseUriUriGets or sets the base URI used for resolving relative paths or requests.
KeywordsKeywordData[]Gets the collection of keyword data this subschema.
PathFromResourceRootJsonPointer 
RelativePathJsonPointerGets a JSON Pointer to this subschema from the parent subschema, excluding the intermediate keyword.
SourceJsonElementGets the original JSON source data this subschema.

Methods

Evaluate(EvaluationContext context)

Evaluates the schema against the provided context and returns the results of the evaluation.

Declaration

1
public EvaluationResults Evaluate(EvaluationContext context)
ParameterTypeDescription
contextEvaluationContextThe evaluation context containing the instance data, schema location, and evaluation options to use during schema

Returns

An EvaluationResults object containing the outcome of the schema evaluation, including validity, errors,

Remarks

If the schema is a boolean schema, the evaluation result is determined immediately. For schemas with keywords, each keyword is evaluated in order, and the overall validity is determined by their contributions. The method manages evaluation scope and tracks evaluated keywords, errors, and annotations as

Contents