forked from loafle/openapi-generator-original
fix javadoc erorr in CI
This commit is contained in:
parent
7fb41048dd
commit
3cfb110f6d
@ -66,6 +66,9 @@ public abstract class AbstractGenerator {
|
||||
/**
|
||||
* Get the template file path with template dir prepended, and use the
|
||||
* library template if exists.
|
||||
*
|
||||
* @param config Codegen config
|
||||
* @param templateFile Template file
|
||||
*/
|
||||
public String getFullTemplateFile(CodegenConfig config, String templateFile) {
|
||||
String library = config.getLibrary();
|
||||
|
@ -147,6 +147,8 @@ public interface CodegenConfig {
|
||||
|
||||
/**
|
||||
* Library template (sub-template).
|
||||
*
|
||||
* @return libray template
|
||||
*/
|
||||
String getLibrary();
|
||||
}
|
||||
|
@ -2193,6 +2193,8 @@ public class DefaultCodegen {
|
||||
|
||||
/**
|
||||
* Library template (sub-template).
|
||||
*
|
||||
* @return Library template
|
||||
*/
|
||||
public String getLibrary() {
|
||||
return library;
|
||||
@ -2257,10 +2259,10 @@ public class DefaultCodegen {
|
||||
}
|
||||
|
||||
/**
|
||||
* only write if the file doesn't exist
|
||||
* Only write if the file doesn't exist
|
||||
*
|
||||
* @param outputFolder
|
||||
* @param supportingFile
|
||||
* @param outputFolder Output folder
|
||||
* @param supportingFile Supporting file
|
||||
*/
|
||||
public void writeOptional(String outputFolder, SupportingFile supportingFile) {
|
||||
String folder = "";
|
||||
@ -2283,8 +2285,8 @@ public class DefaultCodegen {
|
||||
/**
|
||||
* Set CodegenParameter boolean flag using CodegenProperty.
|
||||
*
|
||||
* @param p Codegen Parameter
|
||||
* @param cp Codegen property
|
||||
* @param parameter Codegen Parameter
|
||||
* @param property Codegen property
|
||||
*/
|
||||
public void setParameterBooleanFlagWithCodegenProperty(CodegenParameter parameter, CodegenProperty property) {
|
||||
if (parameter == null) {
|
||||
|
@ -385,6 +385,9 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
||||
|
||||
/**
|
||||
* Normalize type by wrapping primitive types with single quotes.
|
||||
*
|
||||
* @param type Primitive type
|
||||
* @return Normalized type
|
||||
*/
|
||||
public String normalizeType(String type) {
|
||||
return type.replaceAll("\\b(Boolean|Integer|Number|String|Date)\\b", "'$1'");
|
||||
|
@ -293,6 +293,9 @@ public class PythonClientCodegen extends DefaultCodegen implements CodegenConfig
|
||||
*
|
||||
* (PEP 0008) Python packages should also have short, all-lowercase names,
|
||||
* although the use of underscores is discouraged.
|
||||
*
|
||||
* @param packageName Package name
|
||||
* @return Python package name that conforms to PEP 0008
|
||||
*/
|
||||
@SuppressWarnings("static-method")
|
||||
public String generatePackageName(String packageName) {
|
||||
|
@ -211,6 +211,9 @@ public class RubyClientCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
|
||||
/**
|
||||
* Generate Ruby module name from the gem name, e.g. use "SwaggerClient" for "swagger_client".
|
||||
*
|
||||
* @param gemName Ruby gem name
|
||||
* @return Ruby module naame
|
||||
*/
|
||||
@SuppressWarnings("static-method")
|
||||
public String generateModuleName(String gemName) {
|
||||
@ -219,6 +222,9 @@ public class RubyClientCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
|
||||
/**
|
||||
* Generate Ruby gem name from the module name, e.g. use "swagger_client" for "SwaggerClient".
|
||||
*
|
||||
* @param moduleName Ruby module naame
|
||||
* @return Ruby gem name
|
||||
*/
|
||||
@SuppressWarnings("static-method")
|
||||
public String generateGemName(String moduleName) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user