Currently the catValidationService is used by calling the "updateFromRejection" function from within the httpInterceptor.
This solution does only work, if the frontend receives a faulty message from the backend.
But if there is some frontend-validation going on, i want to be able to set specific error messages for some specific fields without the need to hit the backend with faulty data.
So i implemented basically 2 functions - one for creating a specific field error and one for clearing errors of a specific field.
Currently the catValidationService is used by calling the "updateFromRejection" function from within the httpInterceptor.
This solution does only work, if the frontend receives a faulty message from the backend. But if there is some frontend-validation going on, i want to be able to set specific error messages for some specific fields without the need to hit the backend with faulty data.
So i implemented basically 2 functions - one for creating a specific field error and one for clearing errors of a specific field.