跳转到内容
简体中文

ProtobufSerializerOptionsValidator

此内容尚不支持你的语言。

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