Repository navigation
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
|
One thing I'm not overly fond of still is that the models debug output is drowned in lots of debug output, which makes it hard to find. I wonder if Json.prettyPrint shouldn't output on some other log level, or have it return the string to print manually instead, to avoid the logger configuration issue? |
5a45341 to
acffab1
Compare
There was a problem hiding this comment.
All reported issues were addressed across 1 file (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
6f7bcf5 to
3127cd5
Compare
Document that the Java properties must be provided directly on the command-line when using java directly and not simply exported via JAVA_OPTS.
Previously, the output would not be shown as json.prettyPrint logs at debug level via the swagger logger, which level is hard-coded to use the warn level. Fixes: OpenAPITools#25827
3127cd5 to
998d8d9
Compare
|
I've revisited this and landed a better fix; there's no longer any need to change the default logging level; the output of global properties such as debugModels is now logged via openapi-generator-cli's own logger at the info level, instead of going through the swagger logger. |
Previously, the output would not be shown as json.prettyPrint logs at
debug level via the swagger logger, which level is hard-coded to
use the warn level.
Fixes: #25827
PR checklist
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.965 s <<< FAILURE! -- in org.openapitools.codegen.plugin.CodeGenMojoTest
[ERROR] org.openapitools.codegen.plugin.CodeGenMojoTest.testCommonConfigurationWithRemoteInputSpec -- Time elapsed: 0.964 s <<< ERROR!
org.apache.maven.plugin.MojoExecutionException: Code generation failed. See above for the full exception.
at org.openapitools.codegen.plugin.CodeGenMojo.execute(CodeGenMojo.java:1137)
at org.openapitools.codegen.plugin.CodeGenMojoTest.testCommonConfiguration(CodeGenMojoTest.java:79)
at org.openapitools.codegen.plugin.CodeGenMojoTest.testCommonConfigurationWithRemoteInputSpec(CodeGenMojoTest.java:73)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at junit.framework.TestCase.runTest(TestCase.java:177)
at junit.framework.TestCase.runBare(TestCase.java:142)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:130)
at junit.framework.TestSuite.runTest(TestSuite.java:241)
at junit.framework.TestSuite.run(TestSuite.java:236)