Show / Hide Table of Contents

Class JsonSchemaRegistry

Provides a registry in which JSON schema can be saved to be referenced by the system.

Inheritance
System.Object
JsonSchemaRegistry
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Manatee.Json.Schema
Assembly: Manatee.Json.dll
Syntax
public class JsonSchemaRegistry

Methods

| Improve this Doc View Source

Clear()

Clears the registry of all types.

Declaration
public static void Clear()
| Improve this Doc View Source

Get(String)

Downloads and registers a schema at the specified URI.

Declaration
public static JsonSchema? Get(string uri)
Parameters
Type Name Description
System.String uri
Returns
Type Description
System.Nullable<JsonSchema>
| Improve this Doc View Source

Register(JsonSchema)

Explicitly registers an existing schema.

Declaration
public static void Register(JsonSchema schema)
Parameters
Type Name Description
JsonSchema schema
Remarks

This generally isn't required since JsonSchema will automatically register itself upon validation.

| Improve this Doc View Source

Unregister(JsonSchema)

Removes a schema from the registry.

Declaration
public static void Unregister(JsonSchema schema)
Parameters
Type Name Description
JsonSchema schema
| Improve this Doc View Source

Unregister(String)

Removes a schema from the registry.

Declaration
public static void Unregister(string uri)
Parameters
Type Name Description
System.String uri
  • Improve this Doc
  • View Source
Back to top Generated by DocFX