Home JsonPathIdentifier Class
JsonPathIdentifier Class
Cancel

JsonPathIdentifier Class

Namespace: Json.Schema.Data

Inheritance: JsonPathIdentifier 🡒 object

Implemented interfaces:

  • IDataResourceIdentifier

Handles data references that are JSON Paths.

Properties

NameTypeSummary
QueryJsonPathGets the JSON Path query.

Constructors

JsonPathIdentifier(JsonPath query)

Creates a new Json.Schema.Data.JsonPathIdentifier.

Declaration

1
public JsonPathIdentifier(JsonPath query)
ParameterTypeDescription
queryJsonPath 

Methods

TryResolve(KeywordEvaluation evaluation, SchemaRegistry registry, out JsonNode value)

Resolves a resource.

Declaration

1
public bool TryResolve(KeywordEvaluation evaluation, SchemaRegistry registry, out JsonNode value)
ParameterTypeDescription
evaluationKeywordEvaluationThe evaluation being process. This will help identify.
registrySchemaRegistryThe schema registry.
valueout JsonNodeThe value, if evaluation was resolvable.

Returns

True if resolution was successful; false otherwise.

Contents