code: func ValidateRangeMetadata(metadata map[string]interface{}) error {
  	for key, keyVal := range metadata {
  		switch key {
  
  		case optionLimit:
  			//Verify the pageSize is an integer
  			if _, ok := keyVal.(int32); ok {
  				continue
  			}
  			return fmt.Errorf("Invalid entry, \"limit\" must be a int32")
  
  		default:
  			return fmt.Errorf("Invalid entry, option %s not recognized", key)
  		}
  	}
  	return nil
  }
docs: // ValidateRangeMetadata validates the JSON containing attributes for the range query