Skip to content

Commit

Permalink
keep allOf, anyOf, oneOf alongside properties while flattening
Browse files Browse the repository at this point in the history
  • Loading branch information
frantuma committed Mar 6, 2024
1 parent 285907c commit 3695edd
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,11 @@ public Schema createModelFromProperty(Schema schema, String path) {
flattenProperties(properties, path);
model.setProperties(properties);
}
if (schema instanceof ComposedSchema){
model.setAllOf(((ComposedSchema) schema).getAllOf());
model.setAnyOf(((ComposedSchema) schema).getAnyOf());
model.setOneOf(((ComposedSchema) schema).getOneOf());
}

return model;
}
Expand Down

0 comments on commit 3695edd

Please sign in to comment.