title: go lang Error:Field validation for '' failed on the 'required' tag
body: <p>My request is failing from other service even I am passing required query string parameters.
  Here is validation code:</p>
  
  <pre><code>type ActionByRuleRequest struct {
      Code  string `json:"code" form:"code" query:"code" validate:"required,oneof=gde cse scc"`
      Name string `json:"name" form:"name" query:"name" validate:"required"` // Monitoring rule name
  }
  </code></pre>
  
  <p>Here is validating query string with validation</p>
  
  <pre><code>func GetActionByRule(c echo.Context) error {
      // Get parameters from the query string
      req := new(model.ActionByRuleRequest)
      err := c.Bind(req);
      if  err != nil {
          log.Println(err)
          error := model.Error{
              Message: err.Error(),
          }
          responseError := &amp;model.ResponseError{
              Status: http.StatusBadRequest,
              Code:   "INVALID_INPUT",
          }
          responseError.Errors = append(responseError.Errors, error)
          return echo.NewHTTPError(http.StatusBadRequest, responseError)
      }
      // Validate input
      log.Printf("[/action_by_rule] 00000000000 get req = %#v\n", req)
  
      v := validator.New()
  
      err = v.Struct(req); 
  
      if err == nil {
          log.Println("Input valid")
      } else {
          log.Println("Input validation failed:", err)
       }
  }
  </code></pre>
  
  <p>Request URL:'<a href="http://127.0.0.1:3015/action?code=csf&amp;name=tbiubi-csf-rule" rel="nofollow noreferrer">http://127.0.0.1:3015/action?code=csf&amp;name=tbiubi-csf-rule</a>'</p>
  
  <p>Error:</p>
  
  <pre><code> Key: 'ActionByRuleRequest.Code' Error:Field validation for 'Code' failed on the 'required' tag
  Key: 'ActionByRuleRequest.Name' Error:Field validation for 'Name' failed on the 'required' tag
  </code></pre>