Enum HumlUnknownDerivedTypeHandling

Namespace
Huml.Net.Versioning
Assembly
Huml.Net.dll

Controls deserialiser behaviour when a discriminator value is not recognised.

public enum HumlUnknownDerivedTypeHandling

Fields

FallBackToBaseType = 1

Deserialise as the base type when the discriminator value is unrecognised. The discriminator entry is still stripped before fallback so UnmappedMemberHandling.Disallow is not triggered.

Throw = 0

Throw HumlDeserializeException when the discriminator value does not match any registered derived type. This is the default.