Home JsonElementBaseDocument Class
JsonElementBaseDocument Class
Cancel

JsonElementBaseDocument Class

Namespace: Json.Schema

Inheritance: JsonElementBaseDocument 🡒 object

Implemented interfaces:

  • IBaseDocument

Provides a general Json.Schema.IBaseDocument implementation for a System.Text.Json.Nodes.JsonNode.

Properties

NameTypeSummary
BaseUriUriGets the base URI that applies to this schema. This may be defined by a parent schema.

Constructors

JsonElementBaseDocument(JsonElement node, Uri baseUri)

Creates a new Json.Schema.JsonElementBaseDocument.

Declaration

1
public JsonElementBaseDocument(JsonElement node, Uri baseUri)
ParameterTypeDescription
nodeJsonElementThe JsonNode.
baseUriUriThe identifying base URI.

Methods

FindSubschema(JsonPointer pointer, BuildContext context)

Finds a schema within the document.

Declaration

1
public JsonSchemaNode FindSubschema(JsonPointer pointer, BuildContext context)
ParameterTypeDescription
pointerJsonPointerA JSON Pointer to the location of the schema within the document.
contextBuildContextBuild context.

Returns

A JSON Schema, if found.

Contents