Class JsonSchemaModel
- Namespace
- Solace.SchemaRegistry.Serdes.JsonSchema.Model
- Assembly
- Solace.SchemaRegistry.Serdes.JsonSchema.dll
Represents a parsed JSON schema with validation capability. This class decouples the serdes module from any specific JSON Schema library.
public class JsonSchemaModel
- Inheritance
-
JsonSchemaModel
- Inherited Members
Constructors
JsonSchemaModel(object, IJsonSchemaValidator)
Initializes a new instance of the JsonSchemaModel class.
public JsonSchemaModel(object context, IJsonSchemaValidator validator)
Parameters
contextobjectThe underlying parsed schema object from the JSON Schema library.
validatorIJsonSchemaValidatorThe validator strategy used to validate JSON data against this schema.
Exceptions
- ArgumentNullException
Thrown when context or validator is null.
Properties
Context
Gets the underlying parsed schema object from the JSON Schema library (stored as object).
public object Context { get; }
Property Value
Validator
Gets the validator strategy used to validate JSON data against this schema.
public IJsonSchemaValidator Validator { get; }