Skip to main content

Enum ValueSetKind

Namespace: AdCodicem.ValueObjects.Annotations
Assembly: AdCodicem.ValueObjects.Abstractions.dll

Whether a value object accepts arbitrary valid values or only an enumerated set.

public enum ValueSetKind

Fields

Open = 0

Any value satisfying the declared rules is accepted. Declared known values are convenient constants only.

Closed = 1

Only the values declared through are accepted.

Membership is tested against a generated frozen lookup, and the known values are emitted as the enum keyword of the OpenAPI schema. This is how reference-data codes are modelled without paying for a real C# enumeration, which can carry neither validation nor a stable wire format.