Skip to content

Commit

Permalink
fix require var logging, don't matchGenerated if allOf skipped (#17746)
Browse files Browse the repository at this point in the history
  • Loading branch information
robstoll committed Jan 31, 2024
1 parent 4d3121c commit 2129b15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3753,7 +3753,7 @@ protected void addProperties(Map<String, Schema> properties, List<String> requir

for (String r : required) {
if (!properties.containsKey(r)) {
LOGGER.error("Required var %s not in properties", r);
LOGGER.error("Required var {} not in properties", r);
}
}
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,8 @@ private void flattenComposedChildren(String key, List<Schema> children, boolean
Schema innerModel = modelFromProperty(openAPI, component, innerModelName);
// Recurse to create $refs for inner models
gatherInlineModels(innerModel, innerModelName);
String existing = matchGenerated(innerModel);
if (!skipAllOfInlineSchemas) {
String existing = matchGenerated(innerModel);
if (existing == null) {
innerModelName = addSchemas(innerModelName, innerModel);
Schema schema = new Schema().$ref(innerModelName);
Expand Down

0 comments on commit 2129b15

Please sign in to comment.