generateUuidCheck()
generateUuidCheck(
varName,ctx,customMessage?):CodeGenResult
Experimental
Generates inline code for the UUID format constraint. Uses externals to reference the shared UUID_REGEX pattern.
Parameters
varName: string
The variable name to check.
ctx: GeneratorContext
The generator context.
customMessage?: string
Optional custom error message.
Returns: CodeGenResult
Generated code and updated context.
Since
2.0.0