mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-06 10:35:25 +00:00
Reaname R default package name (#411)
* Rename package name * Update samples bin/openapi3/r-petstore.sh
This commit is contained in:
parent
a07ab606dc
commit
d958480fea
@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory;
|
||||
public class RClientCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
static Logger LOGGER = LoggerFactory.getLogger(RClientCodegen.class);
|
||||
|
||||
protected String packageName = "swagger";
|
||||
protected String packageName = "openapitools";
|
||||
protected String packageVersion = "1.0.0";
|
||||
protected String apiDocPath = "docs/";
|
||||
protected String modelDocPath = "docs/";
|
||||
@ -111,7 +111,7 @@ public class RClientCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
|
||||
cliOptions.clear();
|
||||
cliOptions.add(new CliOption(CodegenConstants.PACKAGE_NAME, "R package name (convention: lowercase).")
|
||||
.defaultValue("swagger"));
|
||||
.defaultValue("openapitools"));
|
||||
cliOptions.add(new CliOption(CodegenConstants.PACKAGE_VERSION, "R package version.")
|
||||
.defaultValue("1.0.0"));
|
||||
cliOptions.add(new CliOption(CodegenConstants.HIDE_GENERATION_TIMESTAMP, CodegenConstants.HIDE_GENERATION_TIMESTAMP_DESC)
|
||||
@ -126,7 +126,7 @@ public class RClientCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
if (additionalProperties.containsKey(CodegenConstants.PACKAGE_NAME)) {
|
||||
setPackageName((String) additionalProperties.get(CodegenConstants.PACKAGE_NAME));
|
||||
} else {
|
||||
setPackageName("swagger");
|
||||
setPackageName("openapitools");
|
||||
}
|
||||
|
||||
if (additionalProperties.containsKey(CodegenConstants.PACKAGE_VERSION)) {
|
||||
|
@ -2,10 +2,10 @@
|
||||
|
||||
#' ApiClient Class
|
||||
#'
|
||||
#' Generic API client for Swagger client library builds.
|
||||
#' Swagger generic API client. This client handles the client-
|
||||
#' Generic API client for OpenAPI client library builds.
|
||||
#' OpenAPI generic API client. This client handles the client-
|
||||
#' server communication, and is invariant across implementations. Specifics of
|
||||
#' the methods and models for each application are generated from the Swagger
|
||||
#' the methods and models for each application are generated from the OpenAPI Generator
|
||||
#' templates.
|
||||
#'
|
||||
#' NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
@ -1,7 +1,7 @@
|
||||
Package: {{{packageName}}}
|
||||
Title: R Package Client for {{{appName}}}
|
||||
Version: {{packageVersion}}
|
||||
Authors@R: person("OpenAPI Generator community", email = "apiteam@swagger.io", role = c("aut", "cre"))
|
||||
Authors@R: person("OpenAPI Generator community", email = "team@openapitools.org", role = c("aut", "cre"))
|
||||
Description: {{{appDescription}}}{{^appDescription}}R Package Client for {{{appName}}}{{/appDescription}}
|
||||
Depends: R (>= 3.3.3)
|
||||
Encoding: UTF-8
|
||||
|
@ -1,7 +1,7 @@
|
||||
Package: petstore
|
||||
Title: R Package Client for OpenAPI Petstore
|
||||
Version: 1.0.0
|
||||
Authors@R: person("OpenAPI Generator community", email = "apiteam@swagger.io", role = c("aut", "cre"))
|
||||
Authors@R: person("OpenAPI Generator community", email = "team@openapitools.org", role = c("aut", "cre"))
|
||||
Description: This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
Depends: R (>= 3.3.3)
|
||||
Encoding: UTF-8
|
||||
|
@ -9,10 +9,10 @@
|
||||
|
||||
#' ApiClient Class
|
||||
#'
|
||||
#' Generic API client for Swagger client library builds.
|
||||
#' Swagger generic API client. This client handles the client-
|
||||
#' Generic API client for OpenAPI client library builds.
|
||||
#' OpenAPI generic API client. This client handles the client-
|
||||
#' server communication, and is invariant across implementations. Specifics of
|
||||
#' the methods and models for each application are generated from the Swagger
|
||||
#' the methods and models for each application are generated from the OpenAPI Generator
|
||||
#' templates.
|
||||
#'
|
||||
#' NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
|
Loading…
Reference in New Issue
Block a user