Skip to content

Commit a7244cb

Browse files
committed
parse -> .parse
1 parent 14925f4 commit a7244cb

19 files changed

Lines changed: 514 additions & 514 deletions

File tree

modules/openapi-generator/src/main/resources/r/api.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@
142142
#' @param data_file (optional) name of the data file to save the result
143143
{{/returnType}}
144144
#' @param ... Other optional arguments
145-
#' @param parse Logical. If \code{TRUE} then the response will be parsed to a generated type. If \code{FALSE} the response will be returned as unparsed text.
145+
#' @param .parse Logical. If \code{TRUE} then the response will be parsed to a generated type. If \code{FALSE} the response will be returned as unparsed text.
146146
#'
147147
#' @return {{{returnType}}}{{^returnType}}void{{/returnType}}
148-
{{{operationId}}} = function({{#requiredParams}}{{paramName}}, {{/requiredParams}}{{#optionalParams}}{{paramName}} = {{^defaultValue}}NULL{{/defaultValue}}{{{defaultValue}}}, {{/optionalParams}}{{#vendorExtensions.x-streaming}}stream_callback = NULL, {{/vendorExtensions.x-streaming}}{{#returnType}}data_file = NULL, {{/returnType}}..., parse = TRUE) {
149-
local_var_response <- self${{{operationId}}}{{WithHttpInfo}}({{#allParams}}{{paramName}}, {{/allParams}}{{#vendorExtensions.x-streaming}}stream_callback = stream_callback, {{/vendorExtensions.x-streaming}}{{#returnType}}data_file = data_file, {{/returnType}}..., parse = parse)
148+
{{{operationId}}} = function({{#requiredParams}}{{paramName}}, {{/requiredParams}}{{#optionalParams}}{{paramName}} = {{^defaultValue}}NULL{{/defaultValue}}{{{defaultValue}}}, {{/optionalParams}}{{#vendorExtensions.x-streaming}}stream_callback = NULL, {{/vendorExtensions.x-streaming}}{{#returnType}}data_file = NULL, {{/returnType}}..., .parse = TRUE) {
149+
local_var_response <- self${{{operationId}}}{{WithHttpInfo}}({{#allParams}}{{paramName}}, {{/allParams}}{{#vendorExtensions.x-streaming}}stream_callback = stream_callback, {{/vendorExtensions.x-streaming}}{{#returnType}}data_file = data_file, {{/returnType}}..., .parse = .parse)
150150
{{#vendorExtensions.x-streaming}}
151151
if (typeof(stream_callback) == "closure") { # return void if streaming is enabled
152152
return(invisible(NULL))
@@ -182,7 +182,7 @@
182182
#' @param ... Other optional arguments
183183
#'
184184
#' @return API response ({{{returnType}}}{{^returnType}}void{{/returnType}}) with additional information such as HTTP status code, headers
185-
{{{operationId}}}{{WithHttpInfo}} = function({{#requiredParams}}{{paramName}}, {{/requiredParams}}{{#optionalParams}}{{paramName}} = {{^defaultValue}}NULL{{/defaultValue}}{{{defaultValue}}}, {{/optionalParams}}{{#vendorExtensions.x-streaming}}stream_callback = NULL, {{/vendorExtensions.x-streaming}}{{#returnType}}data_file = NULL, parse = TRUE, {{/returnType}}...) {
185+
{{{operationId}}}{{WithHttpInfo}} = function({{#requiredParams}}{{paramName}}, {{/requiredParams}}{{#optionalParams}}{{paramName}} = {{^defaultValue}}NULL{{/defaultValue}}{{{defaultValue}}}, {{/optionalParams}}{{#vendorExtensions.x-streaming}}stream_callback = NULL, {{/vendorExtensions.x-streaming}}{{#returnType}}data_file = NULL, {{/returnType}}..., .parse = TRUE) {
186186
args <- list(...)
187187
query_params <- list()
188188
header_params <- c()
@@ -570,7 +570,7 @@
570570
self$api_client$WriteFile(local_var_resp, data_file)
571571
}
572572
573-
if (!parse) {
573+
if (!.parse) {
574574
local_var_resp$content <- local_var_resp$response_as_text()
575575
return(local_var_resp)
576576
}

samples/client/echo_api/r/R/auth_api.R

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ AuthApi <- R6::R6Class(
7373
#'
7474
#' @param data_file (optional) name of the data file to save the result
7575
#' @param ... Other optional arguments
76-
#' @param parse Logical. If \code{TRUE} then the response will be parsed to a generated type. If \code{FALSE} the response will be returned as unparsed text.
76+
#' @param .parse Logical. If \code{TRUE} then the response will be parsed to a generated type. If \code{FALSE} the response will be returned as unparsed text.
7777
#'
7878
#' @return character
79-
TestAuthHttpBasic = function(data_file = NULL, ..., parse = TRUE) {
80-
local_var_response <- self$TestAuthHttpBasicWithHttpInfo(data_file = data_file, ..., parse = parse)
79+
TestAuthHttpBasic = function(data_file = NULL, ..., .parse = TRUE) {
80+
local_var_response <- self$TestAuthHttpBasicWithHttpInfo(data_file = data_file, ..., .parse = .parse)
8181
if (local_var_response$status_code >= 200 && local_var_response$status_code <= 299) {
8282
return(local_var_response$content)
8383
} else if (local_var_response$status_code >= 300 && local_var_response$status_code <= 399) {
@@ -96,7 +96,7 @@ AuthApi <- R6::R6Class(
9696
#' @param ... Other optional arguments
9797
#'
9898
#' @return API response (character) with additional information such as HTTP status code, headers
99-
TestAuthHttpBasicWithHttpInfo = function(data_file = NULL, parse = TRUE, ...) {
99+
TestAuthHttpBasicWithHttpInfo = function(data_file = NULL, ..., .parse = TRUE) {
100100
args <- list(...)
101101
query_params <- list()
102102
header_params <- c()
@@ -137,7 +137,7 @@ AuthApi <- R6::R6Class(
137137
self$api_client$WriteFile(local_var_resp, data_file)
138138
}
139139

140-
if (!parse) {
140+
if (!.parse) {
141141
local_var_resp$content <- local_var_resp$response_as_text()
142142
return(local_var_resp)
143143
}
@@ -170,11 +170,11 @@ AuthApi <- R6::R6Class(
170170
#'
171171
#' @param data_file (optional) name of the data file to save the result
172172
#' @param ... Other optional arguments
173-
#' @param parse Logical. If \code{TRUE} then the response will be parsed to a generated type. If \code{FALSE} the response will be returned as unparsed text.
173+
#' @param .parse Logical. If \code{TRUE} then the response will be parsed to a generated type. If \code{FALSE} the response will be returned as unparsed text.
174174
#'
175175
#' @return character
176-
TestAuthHttpBearer = function(data_file = NULL, ..., parse = TRUE) {
177-
local_var_response <- self$TestAuthHttpBearerWithHttpInfo(data_file = data_file, ..., parse = parse)
176+
TestAuthHttpBearer = function(data_file = NULL, ..., .parse = TRUE) {
177+
local_var_response <- self$TestAuthHttpBearerWithHttpInfo(data_file = data_file, ..., .parse = .parse)
178178
if (local_var_response$status_code >= 200 && local_var_response$status_code <= 299) {
179179
return(local_var_response$content)
180180
} else if (local_var_response$status_code >= 300 && local_var_response$status_code <= 399) {
@@ -193,7 +193,7 @@ AuthApi <- R6::R6Class(
193193
#' @param ... Other optional arguments
194194
#'
195195
#' @return API response (character) with additional information such as HTTP status code, headers
196-
TestAuthHttpBearerWithHttpInfo = function(data_file = NULL, parse = TRUE, ...) {
196+
TestAuthHttpBearerWithHttpInfo = function(data_file = NULL, ..., .parse = TRUE) {
197197
args <- list(...)
198198
query_params <- list()
199199
header_params <- c()
@@ -234,7 +234,7 @@ AuthApi <- R6::R6Class(
234234
self$api_client$WriteFile(local_var_resp, data_file)
235235
}
236236

237-
if (!parse) {
237+
if (!.parse) {
238238
local_var_resp$content <- local_var_resp$response_as_text()
239239
return(local_var_resp)
240240
}

0 commit comments

Comments
 (0)