code: func (u *UserTypeDefinition) Finalize() {
  	if u.Reference != nil {
  		if bat := u.AttributeDefinition; bat != nil {
  			u.AttributeDefinition.Inherit(bat)
  		}
  	}
  
  	u.GenerateExample(Design.RandomGenerator(), nil)
  }
docs: // Finalize merges base type attributes.