grncdr/uri-template — Issue #2: Validation on incoming variables?
Author: jvinet
Created: 2011-11-21 20:06:00+00:00
State: open

Would it be possible (and a good idea) to validate the presence of variables in the URL itself?

Variables within the URL (eg, /abc/{stuff}) are typically required and it would save some controller code if these were validated before the controller sees them.

Variables within the query string (eg, /abc{?stuff}) are typically optional, so they don't require existential validation.

Thoughts?