Skip to content

toBoolean

toBoolean(value): boolean | undefined

Defined in: schemaGenerateUtils.ts:28

Converts a value to a boolean, preserving undefined for empty/missing input instead of coercing it to false. Callers need to tell “explicitly FALSE” apart from “not specified” so the XML builder can omit the tag entirely rather than writing out a literal false.

BoolLike

The raw field value.

boolean | undefined

The boolean value, or undefined if empty/missing.