forked from loafle/openapi-generator-original
remove trailing spaces in r templates (#7526)
This commit is contained in:
@@ -13,11 +13,11 @@
|
||||
#' \describe{
|
||||
{{#operation}}
|
||||
#'
|
||||
#' {{operationId}} {{summary}}
|
||||
#' {{operationId}} {{summary}}
|
||||
#'
|
||||
{{/operation}}
|
||||
#' }
|
||||
#'
|
||||
#'
|
||||
#' @export
|
||||
{{classname}} <- R6::R6Class(
|
||||
'{{classname}}',
|
||||
@@ -90,11 +90,11 @@
|
||||
method = "{{httpMethod}}",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
{{#returnType}}
|
||||
{{#returnType}}
|
||||
returnObject <- {{returnType}}$new()
|
||||
result <- returnObject$fromJSON(httr::content(resp, "text", encoding = "UTF-8"))
|
||||
Response$new(returnObject, resp)
|
||||
@@ -111,5 +111,5 @@
|
||||
}{{#hasMore}},{{/hasMore}}
|
||||
{{/operation}}
|
||||
)
|
||||
)
|
||||
)
|
||||
{{/operations}}
|
||||
|
||||
@@ -28,7 +28,7 @@ git init
|
||||
# Adds the files in the local repository and stages them for commit.
|
||||
git add .
|
||||
|
||||
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
||||
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
||||
git commit -m "$release_note"
|
||||
|
||||
# Sets the new remote
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{{#appName}}
|
||||
# {{{appName}}}
|
||||
#
|
||||
#
|
||||
{{/appName}}
|
||||
{{#appDescription}}
|
||||
# {{{appDescription}}}
|
||||
#
|
||||
#
|
||||
{{/appDescription}}
|
||||
# {{#version}}OpenAPI spec version: {{{version}}}{{/version}}
|
||||
# {{#infoEmail}}Contact: {{{infoEmail}}}{{/infoEmail}}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Swagger Petstore
|
||||
#
|
||||
#
|
||||
# This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
#
|
||||
#
|
||||
# OpenAPI spec version: 1.0.0
|
||||
# Contact: apiteam@swagger.io
|
||||
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Swagger Petstore
|
||||
#
|
||||
#
|
||||
# This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
#
|
||||
#
|
||||
# OpenAPI spec version: 1.0.0
|
||||
# Contact: apiteam@swagger.io
|
||||
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Swagger Petstore
|
||||
#
|
||||
#
|
||||
# This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
#
|
||||
#
|
||||
# OpenAPI spec version: 1.0.0
|
||||
# Contact: apiteam@swagger.io
|
||||
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Swagger Petstore
|
||||
#
|
||||
#
|
||||
# This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
#
|
||||
#
|
||||
# OpenAPI spec version: 1.0.0
|
||||
# Contact: apiteam@swagger.io
|
||||
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Swagger Petstore
|
||||
#
|
||||
#
|
||||
# This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
#
|
||||
#
|
||||
# OpenAPI spec version: 1.0.0
|
||||
# Contact: apiteam@swagger.io
|
||||
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Swagger Petstore
|
||||
#
|
||||
#
|
||||
# This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
#
|
||||
#
|
||||
# OpenAPI spec version: 1.0.0
|
||||
# Contact: apiteam@swagger.io
|
||||
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
@@ -18,31 +18,31 @@
|
||||
#' @section Methods:
|
||||
#' \describe{
|
||||
#'
|
||||
#' add_pet Add a new pet to the store
|
||||
#' add_pet Add a new pet to the store
|
||||
#'
|
||||
#'
|
||||
#' delete_pet Deletes a pet
|
||||
#' delete_pet Deletes a pet
|
||||
#'
|
||||
#'
|
||||
#' find_pets_by_status Finds Pets by status
|
||||
#' find_pets_by_status Finds Pets by status
|
||||
#'
|
||||
#'
|
||||
#' find_pets_by_tags Finds Pets by tags
|
||||
#' find_pets_by_tags Finds Pets by tags
|
||||
#'
|
||||
#'
|
||||
#' get_pet_by_id Find pet by ID
|
||||
#' get_pet_by_id Find pet by ID
|
||||
#'
|
||||
#'
|
||||
#' update_pet Update an existing pet
|
||||
#' update_pet Update an existing pet
|
||||
#'
|
||||
#'
|
||||
#' update_pet_with_form Updates a pet in the store with form data
|
||||
#' update_pet_with_form Updates a pet in the store with form data
|
||||
#'
|
||||
#'
|
||||
#' upload_file uploads an image
|
||||
#' upload_file uploads an image
|
||||
#'
|
||||
#' }
|
||||
#'
|
||||
#'
|
||||
#' @export
|
||||
PetApi <- R6::R6Class(
|
||||
'PetApi',
|
||||
@@ -73,7 +73,7 @@ PetApi <- R6::R6Class(
|
||||
method = "POST",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -103,7 +103,7 @@ PetApi <- R6::R6Class(
|
||||
method = "DELETE",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -129,7 +129,7 @@ PetApi <- R6::R6Class(
|
||||
method = "GET",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -157,7 +157,7 @@ PetApi <- R6::R6Class(
|
||||
method = "GET",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -185,7 +185,7 @@ PetApi <- R6::R6Class(
|
||||
method = "GET",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -215,7 +215,7 @@ PetApi <- R6::R6Class(
|
||||
method = "PUT",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -246,7 +246,7 @@ PetApi <- R6::R6Class(
|
||||
method = "POST",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -277,7 +277,7 @@ PetApi <- R6::R6Class(
|
||||
method = "POST",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -292,4 +292,4 @@ PetApi <- R6::R6Class(
|
||||
|
||||
}
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Swagger Petstore
|
||||
#
|
||||
#
|
||||
# This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
#
|
||||
#
|
||||
# OpenAPI spec version: 1.0.0
|
||||
# Contact: apiteam@swagger.io
|
||||
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
@@ -18,19 +18,19 @@
|
||||
#' @section Methods:
|
||||
#' \describe{
|
||||
#'
|
||||
#' delete_order Delete purchase order by ID
|
||||
#' delete_order Delete purchase order by ID
|
||||
#'
|
||||
#'
|
||||
#' get_inventory Returns pet inventories by status
|
||||
#' get_inventory Returns pet inventories by status
|
||||
#'
|
||||
#'
|
||||
#' get_order_by_id Find purchase order by ID
|
||||
#' get_order_by_id Find purchase order by ID
|
||||
#'
|
||||
#'
|
||||
#' place_order Place an order for a pet
|
||||
#' place_order Place an order for a pet
|
||||
#'
|
||||
#' }
|
||||
#'
|
||||
#'
|
||||
#' @export
|
||||
StoreApi <- R6::R6Class(
|
||||
'StoreApi',
|
||||
@@ -59,7 +59,7 @@ StoreApi <- R6::R6Class(
|
||||
method = "DELETE",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -81,7 +81,7 @@ StoreApi <- R6::R6Class(
|
||||
method = "GET",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -109,7 +109,7 @@ StoreApi <- R6::R6Class(
|
||||
method = "GET",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -139,7 +139,7 @@ StoreApi <- R6::R6Class(
|
||||
method = "POST",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -154,4 +154,4 @@ StoreApi <- R6::R6Class(
|
||||
|
||||
}
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Swagger Petstore
|
||||
#
|
||||
#
|
||||
# This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
#
|
||||
#
|
||||
# OpenAPI spec version: 1.0.0
|
||||
# Contact: apiteam@swagger.io
|
||||
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Swagger Petstore
|
||||
#
|
||||
#
|
||||
# This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
#
|
||||
#
|
||||
# OpenAPI spec version: 1.0.0
|
||||
# Contact: apiteam@swagger.io
|
||||
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Swagger Petstore
|
||||
#
|
||||
#
|
||||
# This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
#
|
||||
#
|
||||
# OpenAPI spec version: 1.0.0
|
||||
# Contact: apiteam@swagger.io
|
||||
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
@@ -18,31 +18,31 @@
|
||||
#' @section Methods:
|
||||
#' \describe{
|
||||
#'
|
||||
#' create_user Create user
|
||||
#' create_user Create user
|
||||
#'
|
||||
#'
|
||||
#' create_users_with_array_input Creates list of users with given input array
|
||||
#' create_users_with_array_input Creates list of users with given input array
|
||||
#'
|
||||
#'
|
||||
#' create_users_with_list_input Creates list of users with given input array
|
||||
#' create_users_with_list_input Creates list of users with given input array
|
||||
#'
|
||||
#'
|
||||
#' delete_user Delete user
|
||||
#' delete_user Delete user
|
||||
#'
|
||||
#'
|
||||
#' get_user_by_name Get user by user name
|
||||
#' get_user_by_name Get user by user name
|
||||
#'
|
||||
#'
|
||||
#' login_user Logs user into the system
|
||||
#' login_user Logs user into the system
|
||||
#'
|
||||
#'
|
||||
#' logout_user Logs out current logged in user session
|
||||
#' logout_user Logs out current logged in user session
|
||||
#'
|
||||
#'
|
||||
#' update_user Updated user
|
||||
#' update_user Updated user
|
||||
#'
|
||||
#' }
|
||||
#'
|
||||
#'
|
||||
#' @export
|
||||
UserApi <- R6::R6Class(
|
||||
'UserApi',
|
||||
@@ -73,7 +73,7 @@ UserApi <- R6::R6Class(
|
||||
method = "POST",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -101,7 +101,7 @@ UserApi <- R6::R6Class(
|
||||
method = "POST",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -129,7 +129,7 @@ UserApi <- R6::R6Class(
|
||||
method = "POST",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -155,7 +155,7 @@ UserApi <- R6::R6Class(
|
||||
method = "DELETE",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -181,7 +181,7 @@ UserApi <- R6::R6Class(
|
||||
method = "GET",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -213,7 +213,7 @@ UserApi <- R6::R6Class(
|
||||
method = "GET",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -237,7 +237,7 @@ UserApi <- R6::R6Class(
|
||||
method = "GET",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -269,7 +269,7 @@ UserApi <- R6::R6Class(
|
||||
method = "PUT",
|
||||
queryParams = queryParams,
|
||||
headerParams = headerParams,
|
||||
body = body,
|
||||
body = body,
|
||||
...)
|
||||
|
||||
if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) {
|
||||
@@ -282,4 +282,4 @@ UserApi <- R6::R6Class(
|
||||
|
||||
}
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
@@ -28,7 +28,7 @@ git init
|
||||
# Adds the files in the local repository and stages them for commit.
|
||||
git add .
|
||||
|
||||
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
||||
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
||||
git commit -m "$release_note"
|
||||
|
||||
# Sets the new remote
|
||||
|
||||
Reference in New Issue
Block a user