You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I tried to write a validation exception mapper that returns validation errors in the language requested and I receive this error message:
HV000250: Uninitialized locale: es. Please register your locale as a locale to initialize when initializing your ValidatorFactory.
Expected behavior
I expected the validation error to be in spanish
Actual behavior
An error occured
To Reproduce
Steps to reproduce the behavior:
Create a class with validation annotations
Create a validation exception mapper like this:
Describe the bug
I tried to write a validation exception mapper that returns validation errors in the language requested and I receive this error message:
HV000250: Uninitialized locale: es. Please register your locale as a locale to initialize when initializing your ValidatorFactory.
Expected behavior
I expected the validation error to be in spanish
Actual behavior
An error occured
To Reproduce
Steps to reproduce the behavior:
Create a class with validation annotations
Create a validation exception mapper like this:
Send a request to the endpoint that fails validation rules and specify the accept language
Accept-Language es
Configuration
# Add your application.properties here, if applicable.
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
Additional context
(Add any other context about the problem here.)
The text was updated successfully, but these errors were encountered: