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
Although class-transformer and class-validator do a lot of heavy lifting in terms of (de)seralization and validation the libraries are largely unmaintained and have issues when dealing with complexer types. This issue is to create a list of alternative to these libraries so we can make a decicision whether it is worth it to change the library to something else.
Cons:
Libraries are mostly unmaintained
We need an if (options) in the constructor of each class
A lot of times there's no need for a class instance, an interface that could be validated would be sufficient
ValidateNested doesn't work nicely, especially if you have arrays of mixed types with primitive types
The created schemas don't always reflect the correct type which results in a half-typed rest api
Although class-transformer and class-validator do a lot of heavy lifting in terms of (de)seralization and validation the libraries are largely unmaintained and have issues when dealing with complexer types. This issue is to create a list of alternative to these libraries so we can make a decicision whether it is worth it to change the library to something else.
Cons:
if (options)
in the constructor of each classOptions: (https://www.typescriptneedstypes.com/)
The text was updated successfully, but these errors were encountered: