RobinTail / express-zod-api

A Typescript library to help you get an API server up and running with I/O schema validation and custom middlewares in minutes.
https://ez.robintail.cz
MIT License
619 stars 30 forks source link

Middleware class #1792

Closed RobinTail closed 4 months ago

RobinTail commented 4 months ago

https://github.com/RobinTail/express-zod-api/pull/1787#discussion_r1613867932

coveralls-official[bot] commented 4 months ago

Coverage Status

coverage: 100.0%. remained the same when pulling 896d23b2a18ae0f29392920813024eda2dadb9df on mw-class into 1deb4fd140ef7f21610159be2880c2e0c92094e6 on prep-v20.

RobinTail commented 4 months ago
  1. Need more tests ✅ a. check OPT maintenance in particular ✅
  2. Probably need arrangement for the mw parsing/throwing test ✅
  3. addMiddleware could accept constructor params directly ✅