Description
Recently a breaking change was introduced in validator v13.15.0 which made UUID validation strict by also validating the variant field. The recent update of class-validator brought this breaking change of validator library in 0.14.3 causing failures for UUID like ID validations.
validatorjs/validator.js#2421
isUUID('240d8c21-a21e-4282-0674-176658866702') // false since 0.14.3
Expected behavior
UUID Validation for UUID like strings should pass when in loose mode, introduced in validator@13.15.15. loose mode should be properly exposed for consumption.
isUUID('240d8c21-a21e-4282-0674-176658866702', 'loose') // true
Actual behavior
There is no loose mode to opt-into resulting in failed validations.
Description
Recently a breaking change was introduced in validator v13.15.0 which made UUID validation strict by also validating the variant field. The recent update of class-validator brought this breaking change of validator library in 0.14.3 causing failures for UUID like ID validations.
validatorjs/validator.js#2421
Expected behavior
UUID Validation for UUID like strings should pass when in
loosemode, introduced in validator@13.15.15.loosemode should be properly exposed for consumption.Actual behavior
There is no
loosemode to opt-into resulting in failed validations.