Skip to content

Commit 76e8e81

Browse files
authored
[core] Add back functionality to debug openapi spec, accidentally removed in 4.1.2 (#5147)
1 parent 6cf58af commit 76e8e81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,12 @@ private void configureGeneratorProperties() {
186186
}
187187

188188
if (GlobalSettings.getProperty("debugOpenAPI") != null) {
189-
SerializerUtils.toJsonString(openAPI);
189+
System.out.println(SerializerUtils.toJsonString(openAPI));
190190
} else if (GlobalSettings.getProperty("debugSwagger") != null) {
191191
// This exists for backward compatibility
192192
// We fall to this block only if debugOpenAPI is null. No need to dump this twice.
193193
LOGGER.info("Please use system property 'debugOpenAPI' instead of 'debugSwagger'.");
194-
SerializerUtils.toJsonString(openAPI);
194+
System.out.println(SerializerUtils.toJsonString(openAPI));
195195
}
196196

197197
config.processOpts();

0 commit comments

Comments
 (0)