Home SchemaConstraint Class
SchemaConstraint Class
Cancel

SchemaConstraint Class

Namespace: Json.Schema

Inheritance: SchemaConstraint 🡒 object

Describes the set of constraints a schema object will apply to any instance.

Remarks

This represents any work that can be performed as part of static analysis of the schema.

Properties

NameTypeSummary
BaseInstanceLocationJsonPointerGets the base location within the instance that is being evaluated.
ConstraintsKeywordConstraint[]Gets the set of keyword constraints.
InstanceLocatorFunc<KeywordEvaluation, IEnumerable<JsonPointer>>Defines a method to identify relative instance locations at evaluation time.
LocalSchemaJsonSchemaGets the local Json.Schema.JsonSchema.
RelativeInstanceLocationJsonPointerGets the location relative to Json.Schema.SchemaConstraint.BaseInstanceLocation within the instance that is being evaluated.
SchemaBaseUriUriGets the schema’s base URI.

Methods

BuildEvaluation(JsonNode localInstance, JsonPointer instanceLocation, JsonPointer evaluationPath, EvaluationOptions options)

Builds an evaluation object.

Declaration

1
public SchemaEvaluation BuildEvaluation(JsonNode localInstance, JsonPointer instanceLocation, JsonPointer evaluationPath, EvaluationOptions options)
ParameterTypeDescription
localInstanceJsonNodeThe local instance being evaluated.
instanceLocationJsonPointerThe full instance location.
evaluationPathJsonPointerThe evaluation path.
optionsEvaluationOptionsAny evaluation options. This will be passed via the evaluation context.

Returns

A schema evaluation object.

Contents