I am interested in how this works since I am currently making a dto validation lib that should be able to work everywhere. I am reading the class-validation documentation and see that they call validate(dto) in order to get the validity of the dto. Does this mean that nest calls this function behind the sceens when useing the validationPipe mentioned here:
https://docs.nestjs.com/techniques/validation
Thus meaning it cant use any other validation library?
For context I made this package for react based codebases but im finding it works well everywhere. However dtos and their implementation in nest is just awesome so im trying to add that into my code. while being significantly lighter weight then class-validator.
https://www.npmjs.com/package/ducktyper
Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Progamming), FP (Functional Programming), and FRP (Functional Reactive Programming).
A tool for validating input based on the fundamental js idea of duck typing. The object of this is to allow for clearer input validation and specification from the perspective of the developer. It will reduce the amount of time it takes to do input valida. Latest version: 4.3.2, last published: 19 days ago. Start using ducktyper in your project ...