Skip to content

[validation] provide a validation middleware helper #120

@imdhemy

Description

@imdhemy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions