Closed calebpitan closed 1 year ago
I18nValidationError ignores, context, value and target keys of class validator ValidationError.
I18nValidationError
context
value
target
ValidationError
The context field is very important as it is used to transmit custom metadata on the validation constraint
Currently there's no way to access the context field
I think a notable place to take a look at is this file: https://github.com/toonvanstrijp/nestjs-i18n/blob/main/src/utils/util.ts#L28
I want to add that the constraints also aren't available, although the documentation states that at least constraints and value should be accessible.
I18nValidationError
ignores,context
,value
andtarget
keys of class validatorValidationError
.The
context
field is very important as it is used to transmit custom metadata on the validation constraintCurrently there's no way to access the context field
I think a notable place to take a look at is this file: https://github.com/toonvanstrijp/nestjs-i18n/blob/main/src/utils/util.ts#L28