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
Our api is written using the servicestack framework and makes of its inbuilt fluentvalidation api - see here.
So if our api receives an invalid request then a series of validation errors are sent in the response, explaining the issues with each field, like so...
{
"ErrorCode": "GreaterThan",
"Message": "'Age' must be greater than '0'.",
"Errors": [
{
"ErrorCode": "GreaterThan",
"FieldName": "Age",
"Message": "'Age' must be greater than '0'."
},
{
"ErrorCode": "NotEmpty",
"FieldName": "Company",
"Message": "'Company' should not be empty."
}
]
}
Is it possible and what is the best way to auto-wire these validation errors sent from the server into our ngrx-forms enabled form state?
The text was updated successfully, but these errors were encountered:
Our api is written using the servicestack framework and makes of its inbuilt fluentvalidation api - see here.
So if our api receives an invalid request then a series of validation errors are sent in the response, explaining the issues with each field, like so...
Is it possible and what is the best way to auto-wire these validation errors sent from the server into our ngrx-forms enabled form state?
The text was updated successfully, but these errors were encountered: