code: func toSchemaHref(api *design.APIDefinition, r *design.RouteDefinition) string {
  	params := r.Params()
  	args := make([]interface{}, len(params))
  	for i, p := range params {
  		args[i] = fmt.Sprintf("/{%s}", p)
  	}
  	tmpl := design.WildcardRegex.ReplaceAllLiteralString(r.FullPath(), "%s")
  	return fmt.Sprintf(tmpl, args...)
  }
docs: // toSchemaHref produces a href that replaces the path wildcards with JSON schema references when
  // appropriate.