BetSmartMedia/Lazorse — Issue #1: Validation on incoming variables?
Author: grncdr
Created: 2011-11-22 03:45:42+00:00
State: open

(originally at https://github.com/grncdr/uri-template/issues/2)

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?