code: func (s *RemixSettings) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "RemixSettings"}
  	if s.ChannelMappings == nil {
  		invalidParams.Add(request.NewErrParamRequired("ChannelMappings"))
  	}
  	if s.ChannelsIn != nil && *s.ChannelsIn < 1 {
  		invalidParams.Add(request.NewErrParamMinValue("ChannelsIn", 1))
  	}
  	if s.ChannelsOut != nil && *s.ChannelsOut < 1 {
  		invalidParams.Add(request.NewErrParamMinValue("ChannelsOut", 1))
  	}
  	if s.ChannelMappings != nil {
  		for i, v := range s.ChannelMappings {
  			if v == nil {
  				continue
  			}
  			if err := v.Validate(); err != nil {
  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ChannelMappings", i), err.(request.ErrInvalidParams))
  			}
  		}
  	}
  
  	if invalidParams.Len() > 0 {
  		return invalidParams
  	}
  	return nil
  }
docs: // Validate inspects the fields of the type to determine if they are valid.