Table of Contents

Interface ISchemaValidator

Namespace
Excalibur.Dispatch.Transport.Kafka
Assembly
Excalibur.Dispatch.Transport.Kafka.dll

Validates JSON Schema structure before registration with the Schema Registry.

public interface ISchemaValidator
Extension Methods

Remarks

This validator performs lightweight local validation to catch obvious errors before making a network call to the Schema Registry. It validates:

  • Valid JSON syntax
  • Required JSON Schema properties (e.g., type)
  • JSON Schema draft compliance

Note: Compatibility checking is NOT performed locally. Use IsCompatibleAsync(string, string, CancellationToken) for compatibility validation against the Schema Registry.

Methods

ValidateStructure(string)

Validates the structure of a JSON Schema.

SchemaValidationResult ValidateStructure(string schema)

Parameters

schema string

The JSON Schema string to validate.

Returns

SchemaValidationResult

A SchemaValidationResult indicating whether the schema is valid.

Remarks

This method performs local structural validation only. It does not check compatibility with previously registered schemas.