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
@@ -338,6 +342,7 @@ public AbstractJavaCodegen() {
338
342
cliOptions.add(CliOption.newBoolean(IGNORE_ANYOF_IN_ENUM, "Ignore anyOf keyword in enum", ignoreAnyOfInEnum));
339
343
cliOptions.add(CliOption.newString(ADDITIONAL_ENUM_TYPE_ANNOTATIONS, "Additional annotations for enum type(class level annotations)"));
340
344
cliOptions.add(CliOption.newString(ADDITIONAL_MODEL_TYPE_ANNOTATIONS, "Additional annotations for model type(class level annotations). List separated by semicolon(;) or new line (Linux or Windows)"));
345
+
cliOptions.add(CliOption.newString(SKIP_X_IMPLEMENTS, "Ability to exclude interfaces that are specified using x-implements vendor extension. List separated by semicolon(;) or new line (Linux or Windows)"));
341
346
cliOptions.add(CliOption.newString(ADDITIONAL_ONE_OF_TYPE_ANNOTATIONS, "Additional annotations for oneOf interfaces(class level annotations). List separated by semicolon(;) or new line (Linux or Windows)"));
342
347
cliOptions.add(CliOption.newBoolean(OPENAPI_NULLABLE, "Enable OpenAPI Jackson Nullable library. Not supported by `microprofile` library.", this.openApiNullable));
343
348
cliOptions.add(CliOption.newBoolean(IMPLICIT_HEADERS, "Skip header parameters in the generated API methods using @ApiImplicitParams annotation.", implicitHeaders));
@@ -1997,6 +2002,29 @@ public ModelsMap postProcessModels(ModelsMap objs) {
1997
2002
}
1998
2003
}
1999
2004
2005
+
// skip interfaces predefined in x-implements if excluded via x-implements-skip-interfaces
2006
+
if (!this.skipXImplements.isEmpty()) {
2007
+
LOGGER.info("Models will be post-processed to remove any implementations of the following interfaces: {}", this.skipXImplements);
0 commit comments