How much of the assumption needs to be enforced?

Is merely ensuring that it's not null or blank enough or do I also need to determine if it conforms to the construction of a query parameter?