solenya-group / solenya

mega-powerful micro-framework
MIT License
81 stars 0 forks source link

Built-In Validation #13

Closed solenya-group closed 6 years ago

solenya-group commented 6 years ago

Gist: https://gist.github.com/pickle-ts/f75dec2e8d8c8b6fd0c01feacd76cf10

This integrates with the core pickle API with the same pattern as the router.

It allows asynchronous validation.

It composes more nicely than the pattern in the samples. They both however build on the the excellent class-validator library.

I'll aim to get this added in July. Note that the gist will already work with the existing API, and no changes to the core pickle API are required to integrate.

solenya-group commented 6 years ago

Checked in.