UUID field validation throws TypeError instead of CastError
UUID field validation throws TypeError instead of CastError: a task in LegoFlow-SWE (Harbor dataset). When using the built-in UUID schema type, providing an invalid UUID string to a document and calling validateSync() (or validate() ) results in a TypeError instead of the expected CastError .
The task
When using the built-in `UUID` schema type, providing an invalid UUID string to a document and calling `validateSync()` (or `validate()`) results in a `TypeError` instead of the expected `CastError`.
Part of Lego-X/LegoFlow-SWE.