Aller au contenu
Français

ProtobufSerializerOptionsValidator

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

Defined in: src/serialization/ProtobufSerializerOptions.ts:141

Validates resolved ProtobufSerializerOptionsType settings — same reasoning as the Avro validator: id is a wire contract that outlives the process, so it is rejected at construction rather than on replay.

T = unknown

new ProtobufSerializerOptionsValidator<T>(): ProtobufSerializerOptionsValidator<T>

Defined in: src/serialization/ProtobufSerializerOptions.ts:143

ProtobufSerializerOptionsValidator<T>

OptionsValidator<ProtobufSerializerOptionsType<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