Vlad Poluch

Results 61 comments of Vlad Poluch

Also using **enum** with comments instead of **string literal** could be a better improvement. ``` enum FirebaseErrorCode { /** Thrown if a method is called with incorrect arguments. */ AUTH_ARGUMENT_ERROR...

@vinayuttam https://github.com/firebase/firebase-admin-node/issues/179

You have to use internal API to get this kind of data. Check a code and how internally `class-validator` works/store data you need.

We do not have validator for this. Feel free open PR.

I do not understand why you need another method. In case you use `validateOrReject` you know promise is rejected and you have to handle it. Otherwise you will use `validateSync`

Sure I understand now. But it is breaking change. We have to bundle this to next major release.

Sure why not. Let's introduce new `validateOrThrow` method and mark `validateOrReject` as deprecated.

Transformation plain json object into class instance is not `class-validator` responsibility. I think this should be handled on `class-transformer` side.

I think for this purpose exists option `forbidUnknownValues`. It will return validation error in case `class-validator` dont know target class of validated object. I know the name of option is...