Skip to content
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

add schema handle method on codegen config interface. #10031

Merged
merged 1 commit into from
Feb 9, 2020
Merged
Show file tree
Hide file tree
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 @@ -243,4 +243,6 @@ public interface CodegenConfig {
void setIgnoreImportMapping(boolean ignoreImportMapping);

boolean defaultIgnoreImportMappingOption();

ISchemaHandler getSchemaHandler();
}
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,12 @@ public int compare(String o1, String o2) {
throw new RuntimeException("Could not process model '" + name + "'" + ".Please make sure that your schema is correct!", e);
}
}
final List<CodegenModel> composedModels = null;
/** todo: uncomment once generator repo is updated

final ISchemaHandler schemaHandler = config.getSchemaHandler();
schemaHandler.readProcessedModels(allProcessedModels);

final List<CodegenModel> composedModels = schemaHandler.getModels();
*/

if (composedModels != null && !composedModels.isEmpty()) {
for (CodegenModel composedModel : composedModels) {
final Map<String, Object> models = processModel(composedModel, config, schemas);
Expand Down