| Modifier and Type | Field and Description |
|---|---|
protected CodegenConfig |
config |
protected CodegenIgnoreProcessor |
ignoreProcessor |
protected org.slf4j.Logger |
LOGGER |
protected io.swagger.v3.oas.models.OpenAPI |
openAPI |
protected ClientOptInput |
opts |
protected TemplateProcessor |
templateProcessor |
| Constructor and Description |
|---|
DefaultGenerator() |
DefaultGenerator(Boolean dryRun) |
| Modifier and Type | Method and Description |
|---|---|
List<File> |
generate() |
TemplateProcessor |
getTemplateProcessor()
Retrieves an instance to the configured template processor, available after user-defined options are
applied via
opts(ClientOptInput). |
Generator |
opts(ClientOptInput opts) |
Map<String,List<CodegenOperation>> |
processPaths(io.swagger.v3.oas.models.Paths paths) |
protected File |
processTemplateToFile(Map<String,Object> templateData,
String templateName,
String outputFilename,
boolean shouldGenerate,
String skippedByOption) |
void |
setGenerateMetadata(Boolean generateMetadata)
Programmatically disable the output of .openapi-generator/VERSION, .openapi-generator-ignore,
or other metadata files used by OpenAPI Generator.
|
void |
setGeneratorPropertyDefault(String key,
String value)
Set generator properties otherwise pulled from system properties.
|
protected final org.slf4j.Logger LOGGER
protected CodegenConfig config
protected ClientOptInput opts
protected io.swagger.v3.oas.models.OpenAPI openAPI
protected CodegenIgnoreProcessor ignoreProcessor
protected TemplateProcessor templateProcessor
public DefaultGenerator()
public DefaultGenerator(Boolean dryRun)
public Generator opts(ClientOptInput opts)
public TemplateProcessor getTemplateProcessor()
opts(ClientOptInput).TemplateProcessor, or null.public void setGenerateMetadata(Boolean generateMetadata)
generateMetadata - true: enable outputs, false: disable outputspublic void setGeneratorPropertyDefault(String key, String value)
key - The system property keyvalue - The system property valueprotected File processTemplateToFile(Map<String,Object> templateData, String templateName, String outputFilename, boolean shouldGenerate, String skippedByOption) throws IOException
IOExceptionpublic Map<String,List<CodegenOperation>> processPaths(io.swagger.v3.oas.models.Paths paths)
Copyright © 2021. All rights reserved.