Aller au contenu
Français

AvroSerializerOptionsValidator

Ce contenu n’est pas encore disponible dans votre langue.

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