forked from loafle/openapi-generator-original
Remove warning when type importer manually (#7264)
This commit is contained in:
parent
8bd2dd4c9d
commit
1dc65f0033
@ -2076,7 +2076,9 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
} else if (isAnyTypeSchema(schema)) {
|
} else if (isAnyTypeSchema(schema)) {
|
||||||
return "AnyType";
|
return "AnyType";
|
||||||
} else if (StringUtils.isNotEmpty(schema.getType())) {
|
} else if (StringUtils.isNotEmpty(schema.getType())) {
|
||||||
LOGGER.warn("Unknown type found in the schema: " + schema.getType());
|
if (!importMapping.containsKey(schema.getType())) {
|
||||||
|
LOGGER.warn("Unknown type found in the schema: " + schema.getType());
|
||||||
|
}
|
||||||
return schema.getType();
|
return schema.getType();
|
||||||
}
|
}
|
||||||
// The 'type' attribute has not been set in the OAS schema, which means the value
|
// The 'type' attribute has not been set in the OAS schema, which means the value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user