Table of Contents

Interface ISchemaLocationReader<S>

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

Defines a contract for loading and parsing schemas from a file location.

public interface ISchemaLocationReader<out S>

Type Parameters

S

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

Remarks

Implementations of this interface provide the ability to read schema definitions from file system locations, enabling features such as auto-registration of schemas with the schema registry.

This interface is typically implemented alongside ISchemaParser<S> by schema parsers that support loading schemas from external files. Not all schema formats support this capability.

Methods

GetSchemaFromLocation(string)

Reads and parses a schema from the specified file location.

IParsedSchema<out S> GetSchemaFromLocation(string location)

Parameters

location string

The file path to the schema resource

Returns

IParsedSchema<S>

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

Exceptions

ArgumentNullException

Thrown when location is null

SerializationException

Thrown when the schema file cannot be found, read, or parsed

See Also