mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 14:40:53 +00:00
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) {
|
for (String r : required) {
|
||||||
if (!properties.containsKey(r)) {
|
if (!properties.containsKey(r)) {
|
||||||
LOGGER.error("Required var %s not in properties", r);
|
LOGGER.error("Required var {} not in properties", r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -612,8 +612,8 @@ public class InlineModelResolver {
|
|||||||
Schema innerModel = modelFromProperty(openAPI, component, innerModelName);
|
Schema innerModel = modelFromProperty(openAPI, component, innerModelName);
|
||||||
// Recurse to create $refs for inner models
|
// Recurse to create $refs for inner models
|
||||||
gatherInlineModels(innerModel, innerModelName);
|
gatherInlineModels(innerModel, innerModelName);
|
||||||
String existing = matchGenerated(innerModel);
|
|
||||||
if (!skipAllOfInlineSchemas) {
|
if (!skipAllOfInlineSchemas) {
|
||||||
|
String existing = matchGenerated(innerModel);
|
||||||
if (existing == null) {
|
if (existing == null) {
|
||||||
innerModelName = addSchemas(innerModelName, innerModel);
|
innerModelName = addSchemas(innerModelName, innerModel);
|
||||||
Schema schema = new Schema().$ref(innerModelName);
|
Schema schema = new Schema().$ref(innerModelName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user