Add support to create validations for content type fields

Update the documentation.
` validations.each_with_object({}) { |v, results| results[v.type] = v }` could be extracted into its own method.  Although the method only has one line there is too much happening.

And do not try to use single char variables