Class SchemaBase
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
Properties
View Source
Assembly
Declaration
public Assembly Assembly { get; init; }
Property Value
View Source
ResourceFileName
Declaration
public string ResourceFileName { get; init; }
Property Value
View Source
Schema
Declaration
public JSchema Schema { get; }
Property Value
View Source
Version
Declaration
public string Version { get; }
Property Value
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 Parameters
Name |
Description |
T |
The target type to deserialize to.
|
Exceptions
Implements