Class HumlRequiredAttribute

Namespace
Huml.Net.Serialization
Assembly
Huml.Net.dll

Marks a property as required during HUML deserialisation. When a HUML input does not contain a mapping entry for this property, HumlDeserializeException is thrown listing all missing required members. Has no effect during HumlSerializer.Populate<T>. Mirrors System.Text.Json.Serialization.JsonRequiredAttribute.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
public sealed class HumlRequiredAttribute : Attribute
Inheritance
HumlRequiredAttribute
Inherited Members