Sander Bol
Sander Bol
Another +1 for splitting. See for example how Zend Framework does this (https://github.com/zendframework/zf2) they have a zf2 package which just groups all their small packages together.
I agree.. it seems that we'd be adding a lot of responsibility to Middleware::JsonSchema which it shouldn't be concerned with. I've experimented with the recursive arrayToObject() conversion suggested, but immediately...
While working on the PR, this is what my middleware stack now needs to look like: ``` php $app ->add(MW::payload(['forceArray' => false])->override(true)) ->add( MW::jsonSchema( ['/search' => $schemataDir . '/search/searchQuery.schema.json'] )...
D'oh. Sorry about that!