Interface IJsonSchemaValidator
- Namespace
- Solace.SchemaRegistry.Serdes.JsonSchema.Model
- Assembly
- Solace.SchemaRegistry.Serdes.JsonSchema.dll
Strategy interface for JSON schema validation. Implementations are library-specific and handle the conversion from the Schema's Context object to the library's native type.
public interface IJsonSchemaValidator
Methods
Validate(JsonSchemaModel, string)
Validates a JSON string against the given schema.
JsonArray Validate(JsonSchemaModel schema, string json)
Parameters
schemaJsonSchemaModelThe Schema object containing the library-specific context.
jsonstringThe JSON string to validate.
Returns
- JsonArray
A JsonArray of validation error objects, empty if valid.