martenframework / marten

The pragmatic web framework.
https://martenframework.com
MIT License
407 stars 23 forks source link

Make it possible to initialize schemas from handler params #73

Closed ellmetha closed 1 year ago

ellmetha commented 1 year ago

Description

It may be necessary in some situations to initialize schemas from handler params (accessible via the #params getter). Presently, the Marten::Schema class does not allow to do that easily, but this is something that should be possible.

Let's ensure that schemas can be initialized from handler parameter hashes.