Class KafkaJsonDeserializerConfiguration
- Namespace
- Silverback.Messaging.Configuration.Kafka.SchemaRegistry
- Assembly
- Silverback.Integration.Kafka.SchemaRegistry.dll
Wraps the Confluent.SchemaRegistry.Serdes.JsonDeserializerConfig.
public sealed record KafkaJsonDeserializerConfiguration : IEquatable<KafkaJsonDeserializerConfiguration>
- Inheritance
-
KafkaJsonDeserializerConfiguration
- Implements
- Inherited Members
Constructors
KafkaJsonDeserializerConfiguration()
public KafkaJsonDeserializerConfiguration()
Properties
SchemaIdStrategy
Gets the schema ID strategy. The default is Confluent.SchemaRegistry.SchemaIdDeserializerStrategy.Dual.
public SchemaIdDeserializerStrategy? SchemaIdStrategy { get; init; }
Property Value
- SchemaIdDeserializerStrategy?
SubjectNameStrategy
Gets the subject name strategy. The default is Confluent.SchemaRegistry.SubjectNameStrategy.Associated.
public SubjectNameStrategy? SubjectNameStrategy { get; init; }
Property Value
- SubjectNameStrategy?
UseLatestVersion
Gets a value indicating whether the deserializer should use the latest subject version for deserialization. Note that there is no check that the latest schema is backwards compatible with the schema of the message being deserialized.
public bool? UseLatestVersion { get; init; }
Property Value
- bool?
UseLatestWithMetadata
Gets the metadata to be used to select the latest subject version to be used for deserialization. Note that there is no check that the latest schema is backwards compatible with the schema of the message being deserialized.
public IReadOnlyDictionary<string, string>? UseLatestWithMetadata { get; init; }
Property Value
Validate
Gets a value indicating whether the deserializer should validate the payload against the schema. The default is true.
public bool? Validate { get; init; }
Property Value
- bool?
ValidateBeforeDomainRules
Gets a value indicating whether the message should be validated against the schema before running the domain rules instead of after.
public bool? ValidateBeforeDomainRules { get; init; }
Property Value
- bool?
ValidationRulesExecution
Gets a value specifying when the inline validation rules run, relative to the domain rule transformations. The default is Confluent.SchemaRegistry.ValidationRulesExecution.Disabled.
public ValidationRulesExecution? ValidationRulesExecution { get; init; }
Property Value
- ValidationRulesExecution?
ValidationRulesFailFast
Gets a value indicating whether the validation stops at the first failed rule and reports only that violation.
public bool? ValidationRulesFailFast { get; init; }
Property Value
- bool?
Methods
Equals(KafkaJsonDeserializerConfiguration?)
public bool Equals(KafkaJsonDeserializerConfiguration? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(KafkaJsonDeserializerConfiguration?, KafkaJsonDeserializerConfiguration?)
public static bool operator ==(KafkaJsonDeserializerConfiguration? left, KafkaJsonDeserializerConfiguration? right)
Parameters
Returns
operator !=(KafkaJsonDeserializerConfiguration?, KafkaJsonDeserializerConfiguration?)
public static bool operator !=(KafkaJsonDeserializerConfiguration? left, KafkaJsonDeserializerConfiguration? right)