Log global property-enabled output at info level (#25827)
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
- Read the contribution guidelines.
- Run the following to build the project and update samples:
mvn clean package -> mostly OK, some unrelated failures on Guix, e.g.:
[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)
./bin/generate-samples.sh ./bin/configs/*.yaml -> OK
./bin/utils/export_docs_generators.sh -> OK
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Makes debug output from global properties like `debugModels=true` actually visible by printing it at info level. Previously `Json.prettyPrint` logged through the `io.swagger` logger, whose level was hardcoded to `warn`, so the output was suppressed.
- Replaces `Json.prettyPrint` with `LOGGER.info(Json.pretty(...))` for models, APIs, webhooks, and supporting files.
- Documents that when invoking the tool via Java directly, options must be passed on the command line rather than via `JAVA_OPTS`.
Fixes #25827.
<!-- End of auto-generated description by cubic. -->