code: func (r *ResponseDefinition) Finalize() {
  	if r.Type == nil {
  		return
  	}
  	if r.MediaType != "" && r.MediaType != "text/plain" {
  		return
  	}
  	mt, ok := r.Type.(*MediaTypeDefinition)
  	if !ok {
  		return
  	}
  	r.MediaType = mt.Identifier
  }
docs: // Finalize sets the response media type from its type if the type is a media type and no media
  // type is already specified.