code: func (v *ViewDefinition) Validate() *dslengine.ValidationErrors {
  	verr := new(dslengine.ValidationErrors)
  	if v.Parent == nil {
  		verr.Add(v, "View must have a parent media type")
  	}
  	verr.Merge(v.AttributeDefinition.Validate("", v))
  	return verr.AsError()
  }
docs: // Validate checks that the view definition is consistent: it has a  parent media type and the
  // underlying definition type is consistent.