Apply sub-request route's params to the created document if matching the schema

Fixes #354