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

One of property creation missed #590

Merged
merged 11 commits into from
Jan 29, 2020
Prev Previous commit
Next Next commit
casted default codegen config to access unknown method.
  • Loading branch information
HugoMario committed Jan 29, 2020
commit c54a2048f3e77385fb6b67778d181288be80068e
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected CodegenWrapper processSchemas(CodegenConfig codegenConfig, OpenAPI ope
codegenConfig.preprocessOpenAPI(openAPI);
final Map<String, Schema> schemaMap = openAPI.getComponents().getSchemas();

final CodegenWrapper codegenWrapper = new CodegenWrapper(codegenConfig.getSchemaHandler());
final CodegenWrapper codegenWrapper = new CodegenWrapper(((DefaultCodegenConfig)codegenConfig).getSchemaHandler());
for (String name : schemaMap.keySet()) {
final Schema schema = schemaMap.get(name);
final CodegenModel codegenModel = codegenConfig.fromModel(name, schema, schemaMap);
Expand Down