io.swagger.codegen.v3.CodegenConfig Maven / Gradle / Ivy
package io.swagger.codegen.v3;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.github.jknack.handlebars.Handlebars;
import com.samskivert.mustache.Mustache;
import io.swagger.codegen.v3.templates.TemplateEngine;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.Operation;
import io.swagger.v3.oas.models.media.Schema;
import io.swagger.v3.oas.models.security.SecurityScheme;
public interface CodegenConfig {
CodegenType getTag();
String getName();
String getHelp();
Map additionalProperties();
Map vendorExtensions();
String testPackage();
String apiPackage();
String apiFileFolder();
String apiTestFileFolder();
String apiDocFileFolder();
String fileSuffix();
String outputFolder();
String templateDir();
String embeddedTemplateDir();
String customTemplateDir();
String getTemplateVersion();
String modelFileFolder();
String modelTestFileFolder();
String modelDocFileFolder();
String modelPackage();
String toApiName(String name);
String toApiVarName(String name);
String toModelName(String name);
String toParamName(String name);
String escapeText(String text);
String escapeUnsafeCharacters(String input);
String escapeReservedWord(String name);
String escapeQuotationMark(String input);
String getTypeDeclaration(Schema schema);
String getTypeDeclaration(String name);
void processOpts();
List cliOptions();
String generateExamplePath(String path, Operation operation);
Set reservedWords();
List supportingFiles();
String getInputSpec();
void setInputSpec(String inputSpec);
String getInputURL();
void setInputURL(String inputSpec);
String getOutputDir();
void setOutputDir(String dir);
CodegenModel fromModel(String name, Schema schema);
CodegenModel fromModel(String name, Schema schema, Map allDefinitions);
CodegenOperation fromOperation(String resourcePath, String httpMethod, Operation operation, Map definitions, OpenAPI openAPI);
CodegenOperation fromOperation(String resourcePath, String httpMethod, Operation operation, Map definitions);
List fromSecurity(Map schemes);
Set defaultIncludes();
Map typeMapping();
Map instantiationTypes();
Map importMapping();
Map apiTemplateFiles();
Map modelTemplateFiles();
Map apiTestTemplateFiles();
Map modelTestTemplateFiles();
Map apiDocTemplateFiles();
Map modelDocTemplateFiles();
Set languageSpecificPrimitives();
Map reservedWordsMappings();
void preprocessOpenAPI(OpenAPI openAPI);
void processOpenAPI(OpenAPI openAPI);
Mustache.Compiler processCompiler(Mustache.Compiler compiler);
TemplateEngine getTemplateEngine();
String sanitizeName(String name);
String sanitizeTag(String tag);
String toApiFilename(String name);
String toModelFilename(String name);
String toApiTestFilename(String name);
String toModelTestFilename(String name);
String toApiDocFilename(String name);
String toModelDocFilename(String name);
String toModelImport(String name);
String toApiImport(String name);
void addOperationToGroup(String tag, String resourcePath, Operation operation, CodegenOperation co, Map> operations);
Map postProcessAllModels(Map objs);
Map postProcessModels(Map objs);
Map postProcessOperations(Map objs);
Map postProcessOperationsWithModels(Map objs, List