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 SourceClear()
Clears the registry of all types.
Declaration
public static void Clear()
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> |
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.
Unregister(JsonSchema)
Removes a schema from the registry.
Declaration
public static void Unregister(JsonSchema schema)
Parameters
Type | Name | Description |
---|---|---|
JsonSchema | schema |
Unregister(String)
Removes a schema from the registry.
Declaration
public static void Unregister(string uri)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri |