Skip to content

added capability to use URL related to input definition. #256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@
import static io.swagger.codegen.v3.CodegenConstants.IS_ARRAY_MODEL_EXT_NAME;
import static io.swagger.codegen.v3.CodegenConstants.IS_CONTAINER_EXT_NAME;
import static io.swagger.codegen.v3.CodegenConstants.IS_ENUM_EXT_NAME;
import static io.swagger.codegen.v3.generators.handlebars.ExtensionHelper.getBooleanValue;
import static io.swagger.codegen.v3.generators.CodegenHelper.getDefaultIncludes;
import static io.swagger.codegen.v3.generators.CodegenHelper.getImportMappings;
import static io.swagger.codegen.v3.generators.CodegenHelper.getTypeMappings;
import static io.swagger.codegen.v3.generators.CodegenHelper.initalizeSpecialCharacterMapping;
import static io.swagger.codegen.v3.generators.handlebars.ExtensionHelper.getBooleanValue;
import static io.swagger.codegen.v3.utils.ModelUtils.processCodegenModels;

public abstract class DefaultCodegenConfig implements CodegenConfig {
Expand All @@ -112,6 +112,7 @@ public abstract class DefaultCodegenConfig implements CodegenConfig {
public static final String DEFAULT_TEMPLATE_DIR = "handlebars";

protected String inputSpec;
protected String inputURL;
protected String outputFolder = StringUtils.EMPTY;
protected Set<String> defaultIncludes = new HashSet<String>();
protected Map<String, String> typeMapping = new HashMap<String, String>();
Expand Down Expand Up @@ -597,6 +598,14 @@ public void setInputSpec(String inputSpec) {
this.inputSpec = inputSpec;
}

public String getInputURL() {
return inputURL;
}

public void setInputURL(String inputSpec) {
this.inputURL = inputURL;
}

public void setTemplateDir(String templateDir) {
this.templateDir = templateDir;
}
Expand Down