forked from loafle/openapi-generator-original
fix require var logging, don't matchGenerated if allOf skipped (#17746)
This commit is contained in:
parent
4d3121c32e
commit
2129b15c8f
@ -3753,7 +3753,7 @@ public class DefaultCodegen implements CodegenConfig {
|
||||
|
||||
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;
|
||||
|
@ -612,8 +612,8 @@ public class InlineModelResolver {
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user