Show / Hide Table of Contents

Class SchemaBase

Inheritance
object
SchemaBase
GatewaySchema
TitleConfigurationSchema
Implements
IEquatable<SchemaBase>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: CrashCABN.JsonSchema
Assembly: CrashCABN.JsonSchema.dll
Syntax
public abstract record SchemaBase : IEquatable<SchemaBase>

Constructors

View Source

SchemaBase(Assembly, string)

Declaration
protected SchemaBase(Assembly Assembly, string ResourceFileName)
Parameters
Type Name Description
Assembly Assembly
string ResourceFileName

Properties

View Source

Assembly

Declaration
public Assembly Assembly { get; init; }
Property Value
Type Description
Assembly
View Source

ResourceFileName

Declaration
public string ResourceFileName { get; init; }
Property Value
Type Description
string
View Source

Schema

Declaration
public JSchema Schema { get; }
Property Value
Type Description
JSchema
View Source

Version

Declaration
public string Version { get; }
Property Value
Type Description
string

Methods

View Source

Deserialize<T>(string)

Validates the configuration json adheres to the configuration schema and deserializes it.

Declaration
public T Deserialize<T>(string configJsonText)
Parameters
Type Name Description
string configJsonText

The configuration in JSON format to validate.

Returns
Type Description
T
Type Parameters
Name Description
T

The target type to deserialize to.

Exceptions
Type Condition
SchemaViolationException

Thrown if the schema validation fails.

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX