code: func (m ValidationError) MarshalJSON() ([]byte, error) {
  	_parts := make([][]byte, 0, 2)
  
  	aO0, err := swag.WriteJSON(m.Error)
  	if err != nil {
  		return nil, err
  	}
  	_parts = append(_parts, aO0)
  
  	var dataAO1 struct {
  		Field string `json:"field,omitempty"`
  	}
  
  	dataAO1.Field = m.Field
  
  	jsonDataAO1, errAO1 := swag.WriteJSON(dataAO1)
  	if errAO1 != nil {
  		return nil, errAO1
  	}
  	_parts = append(_parts, jsonDataAO1)
  
  	return swag.ConcatJSON(_parts...), nil
  }
docs: // MarshalJSON marshals this object to a JSON structure