docs: func (s *CaptionSelectorSettings) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "CaptionSelectorSettings"}
  	if s.DvbSubSourceSettings != nil {
  		if err := s.DvbSubSourceSettings.Validate(); err != nil {
  			invalidParams.AddNested("DvbSubSourceSettings", err.(request.ErrInvalidParams))
  		}
  	}
  	if s.EmbeddedSourceSettings != nil {
  		if err := s.EmbeddedSourceSettings.Validate(); err != nil {
  			invalidParams.AddNested("EmbeddedSourceSettings", err.(request.ErrInvalidParams))
  		}
  	}
  	if s.Scte20SourceSettings != nil {
  		if err := s.Scte20SourceSettings.Validate(); err != nil {
  			invalidParams.AddNested("Scte20SourceSettings", err.(request.ErrInvalidParams))
  		}
  	}
  	if s.Scte27SourceSettings != nil {
  		if err := s.Scte27SourceSettings.Validate(); err != nil {
  			invalidParams.AddNested("Scte27SourceSettings", err.(request.ErrInvalidParams))
  		}
  	}
  
  	if invalidParams.Len() > 0 {
  		return invalidParams
  	}
  	return nil
  }