Show / Hide Table of Contents

Interface IJsonSchemaDependency

Defines properties and methods required to represent dependencies within JSON Schema.

Inherited Members
IJsonSerializable.FromJson(JsonValue, JsonSerializer)
IJsonSerializable.ToJson(JsonSerializer)
System.IEquatable<Manatee.Json.Schema.IJsonSchemaDependency>.Equals(Manatee.Json.Schema.IJsonSchemaDependency)
Namespace: Manatee.Json.Schema
Assembly: Manatee.Json.dll
Syntax
public interface IJsonSchemaDependency : IJsonSerializable, IEquatable<IJsonSchemaDependency>

Properties

| Improve this Doc View Source

PropertyName

Gets or sets the property with the dependency.

Declaration
string PropertyName { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

SupportedVersions

Gets the versions (drafts) of JSON Schema which support this keyword.

Declaration
JsonSchemaVersion SupportedVersions { get; }
Property Value
Type Description
JsonSchemaVersion

Methods

| Improve this Doc View Source

RegisterSubschemas(SchemaValidationContext)

Used register any subschemas during validation. Enables look-forward compatibility with $ref keywords.

Declaration
void RegisterSubschemas(SchemaValidationContext context)
Parameters
Type Name Description
SchemaValidationContext context

The context object.

| Improve this Doc View Source

ResolveSubschema(JsonPointer, Uri, JsonSchemaVersion)

Resolves any subschemas during resolution of a $ref during validation.

Declaration
JsonSchema? ResolveSubschema(JsonPointer pointer, Uri baseUri, JsonSchemaVersion supportedVersions)
Parameters
Type Name Description
JsonPointer pointer

A JsonPointer to the target schema.

System.Uri baseUri

The current base URI.

JsonSchemaVersion supportedVersions

Indicates the root schema's supported versions.

Returns
Type Description
System.Nullable<JsonSchema>

The referenced schema, if it exists; otherwise null.

| Improve this Doc View Source

Validate(SchemaValidationContext)

Provides the validation logic for this dependency.

Declaration
SchemaValidationResults Validate(SchemaValidationContext context)
Parameters
Type Name Description
SchemaValidationContext context

The context object.

Returns
Type Description
SchemaValidationResults

Results object containing a final result and any errors that may have been found.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX