code: func (v *ValidationDefinition) Merge(other *ValidationDefinition) {
  	if v.Values == nil {
  		v.Values = other.Values
  	}
  	if v.Format == "" {
  		v.Format = other.Format
  	}
  	if v.Pattern == "" {
  		v.Pattern = other.Pattern
  	}
  	if v.Minimum == nil || (other.Minimum != nil && *v.Minimum > *other.Minimum) {
  		v.Minimum = other.Minimum
  	}
  	if v.Maximum == nil || (other.Maximum != nil && *v.Maximum < *other.Maximum) {
  		v.Maximum = other.Maximum
  	}
  	if v.MinLength == nil || (other.MinLength != nil && *v.MinLength > *other.MinLength) {
  		v.MinLength = other.MinLength
  	}
  	if v.MaxLength == nil || (other.MaxLength != nil && *v.MaxLength < *other.MaxLength) {
  		v.MaxLength = other.MaxLength
  	}
  	v.AddRequired(other.Required)
  }
docs: // Merge merges other into v.