Table of Contents

Interface ISchemaDataReader<S, T>

Namespace
Solace.SchemaRegistry.Serdes.Core.Resolver
Assembly
Solace.SchemaRegistry.Serdes.Core.dll

Defines a contract for deriving and parsing a schema directly from record data.

public interface ISchemaDataReader<out S, T>

Type Parameters

S

The schema type that this reader can handle (e.g., Avro Schema)

T

The record data type from which a schema can be extracted

Remarks

Implementations of this interface provide the ability to extract a schema definition from the data being serialized, enabling features such as resolving artifact references by content and auto-registration without an external schema location.

This interface is typically implemented alongside ISchemaParser<S> by schema parsers that can infer schemas from record data. Not all schema formats support this capability.

Methods

GetSchemaFromData(IRecord<T>)

Extracts and parses the schema from the specified record data.

IParsedSchema<out S> GetSchemaFromData(IRecord<T> record)

Parameters

record IRecord<T>

The record containing the data from which to derive the schema

Returns

IParsedSchema<S>

An IParsedSchema<S> containing the parsed schema and raw schema bytes

Exceptions

ArgumentNullException

Thrown when record is null

SerializationException

Thrown when a schema cannot be derived from the record data

See Also