Zum Inhalt springen
Deutsch

AvroSerializerOptionsValidator

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Defined in: src/serialization/AvroSerializerOptions.ts:91

Validates resolved AvroSerializerOptionsType settings. id is a wire contract that outlives the process — a bad one is discovered when old rows stop decoding, so it is rejected at construction instead.

T = unknown

new AvroSerializerOptionsValidator<T>(): AvroSerializerOptionsValidator<T>

Defined in: src/serialization/AvroSerializerOptions.ts:93

AvroSerializerOptionsValidator<T>

OptionsValidator<AvroSerializerOptionsType<T>>.constructor

validate(settings): void

Defined in: src/util/OptionsValidator.ts:75

Check the (merged) settings; throws OptionsError on the first violation. Unset (undefined) fields always pass.

Partial<T>

void

OptionsValidator.validate