Home BuildContext Struct
BuildContext Struct
Cancel

BuildContext Struct

Namespace: Json.Schema

Inheritance: BuildContext 🡒 ValueType 🡒 object

Provides contextual information required during the construction of a schema, including build options, schema documents, and dialect settings.

Remarks

Use this structure to pass relevant build parameters processing keywords. The context encapsulates both global and local schema data, as well as the base URI and dialect, ensuring consistent schema resolution

Properties

NameTypeSummary
BaseUriUriGets or sets the base URI used to resolve relative resource references.
DialectDialectGets or set the JSON Schema dialect to use in the build process.
LocalSchemaJsonElementGets or sets the local value from which a new schema is to be built.
OptionsBuildOptionsGets the configuration options used for the build process.
PathFromResourceRootJsonPointer 
RelativePathJsonPointerGets or sets the path to the Json.Schema.BuildContext.LocalSchema in addition to the keyword.

Methods

From(KeywordData keyword)

Creates a copy of a build context from the one that was used to build a keyword.

Declaration

1
public static BuildContext From(KeywordData keyword)
ParameterTypeDescription
keywordKeywordDataThe keyword.

Returns

A copy of the build context.

Contents