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.
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”T = unknown
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ProtobufSerializerOptionsValidator<
T>():ProtobufSerializerOptionsValidator<T>
Defined in: src/serialization/ProtobufSerializerOptions.ts:143
Returns
Section titled “Returns”ProtobufSerializerOptionsValidator<T>
Overrides
Section titled “Overrides”OptionsValidator<ProtobufSerializerOptionsType<T>>.constructor
Methods
Section titled “Methods”validate()
Section titled “validate()”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.
Parameters
Section titled “Parameters”settings
Section titled “settings”Partial<T>
Returns
Section titled “Returns”void
