OptionalvalidationOptions: ValidationOptionsValidation options (e.g. each for collections).
A property decorator that validates and transforms the field to a boolean or an array of booleans.
Your can load environment variables in the form of a boolean.
This decorator can be used to validate and transform a field in a Boolean or an array of Booleans.