You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOGGER.info("Following interfaces will be skipped for model {}: {}", cm.classname, xImplementsInModelSkipped);
2039
+
LOGGER.info("Following interfaces configured via additional property '{}' will be skipped for model {}: {}", cm.classname, X_IMPLEMENTS_OVERRIDES, xImplementsInModelSkipped);
2033
2040
}
2034
2041
if (!xImplementsInModelSubstituteFromTo.isEmpty()) {
2035
-
LOGGER.info("Following interfaces will be replaced for model {}: {}", cm.classname, xImplementsInModelSubstituteFromTo.entrySet().stream()
2042
+
LOGGER.info("Following interfaces configured via additional property '{}' will be replaced for model {}: {}", cm.classname, X_IMPLEMENTS_OVERRIDES, xImplementsInModelSubstituteFromTo.entrySet().stream()
2036
2043
.map(entry -> " from [" + entry.getKey() + "] to [" + entry.getValue() + "]")
2037
2044
.collect(Collectors.joining(",")));
2038
2045
}
@@ -2045,6 +2052,22 @@ public ModelsMap postProcessModels(ModelsMap objs) {
2045
2052
}
2046
2053
}
2047
2054
}
2055
+
// add interfaces defined outside of open api spec
2056
+
if (!this.schemaImplements.isEmpty()) {
2057
+
for (ModelMapmo : objs.getModels()) {
2058
+
CodegenModelcm = mo.getModel();
2059
+
if (this.schemaImplements.containsKey(cm.getSchemaName())) {
2060
+
LOGGER.info("Adding interface(s) {} configured via additional property '{}' to model {}", this.schemaImplements.get(cm.getSchemaName()), SCHEMA_IMPLEMENTS, cm.classname);
0 commit comments