EnumDef
Import from @varavel/vdl-plugin-sdk.
EnumDef exposes the generated runtime helpers for EnumDef.
Type Declaration
| Name | Type | Description |
|---|---|---|
hydrate() |
(input) => EnumDef |
Hydrates a validated EnumDef value into its runtime representation. |
parse() |
(json) => EnumDef |
Parses a JSON string into a validated and hydrated EnumDef value. |
validate() |
(input, path?) => string | null |
Performs structural validation for EnumDef (required field presence and basic type shape only); it does not enforce business rules. |