Skip to content

Commit

Permalink
Fix Python codegen is specific additionalProperties case.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaklaassen-affirm committed Dec 20, 2023
1 parent aacea34 commit 74d1837
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ private ModelsMap postProcessModelsMap(ModelsMap objs) {
if (!model.allOf.isEmpty()) { // allOf
for (CodegenProperty cp : model.allVars) {
if (!cp.isPrimitiveType || cp.isModel) {
if (cp.isArray){ // if array
if (cp.isArray || cp.isMap){ // if array
modelImports.add(cp.items.dataType);
}else{ // if model
modelImports.add(cp.getDataType());
Expand Down

0 comments on commit 74d1837

Please sign in to comment.