NancyFx/Nancy — pull request #1169 by rasmus-beck (2013-07-29 11:53:21+00:00)
Title: Added resolved route to NancyContext

I need a place to do JSON Schema Validation in a REST API. This needs to know what the resolved route is, and if I want to do that elsewhere than in the route action, then I need access to the Route from where ever that is.

With this pull request, I will have access to the route in the Before Module Hook and can fail fast and early with a convention based schema validation.

With access to the route we can differentiate with different schemas for POST, PUT and PATCH.