Interface IJsonSchemaDependency
Defines properties and methods required to represent dependencies within JSON Schema.
Inherited Members
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 SourcePropertyName
Gets or sets the property with the dependency.
Declaration
string PropertyName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
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 SourceRegisterSubschemas(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. |
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. |
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. |