Validate collectionTime and TTL.

This wasn't my first choice of how to do it (annotations would have been better). But it seems like the best way without going whole-hog and using a JSON schema.