deepkit / deepkit-framework

A new full-featured and high-performance TypeScript framework
https://deepkit.io/
MIT License
3.24k stars 124 forks source link

fix(http): support for JSON array payloads #564

Closed fergusean closed 6 months ago

fergusean commented 7 months ago

Summary of changes

JSON array payloads are converted into objects by formidable. This prevents HttpBody/HttpBodyValidator from properly validating the data (it doesn't pass the isIterable check, so body ends up being undefined after serialization).

Relinquishment of Rights

Please mark following checkbox to confirm that you relinquish all rights of your changes:

marcj commented 6 months ago

thanks @fergusean !