Today KoalaTs provides all components that can be used to simplify validation of Http requests on the fly. Here is an implementation example from Kairos.
This middleware if full aligned with KoalaTs validator and router. It can be promoted as a framework utility to avoid repeating the same request-validation in every project.
AC
- Expose validation middleware factory helper.
- Works with built-in validator and violation mapper.
- Returns
400 on validation failures with flattened errors.
Today KoalaTs provides all components that can be used to simplify validation of Http requests on the fly. Here is an implementation example from Kairos.
This middleware if full aligned with KoalaTs validator and router. It can be promoted as a framework utility to avoid repeating the same request-validation in every project.
AC
400on validation failures with flattened errors.