Description
Description
The program aborts before completing some commands when a logging library is absent.
Swagger-codegen version
3.0.42
Swagger declaration file content or URL
I cached them from https://developer.ebay.com/; there is nothing special about them; any contract will exhibit the problem.
Command line used for generation
/usr/local/bin/swagger-codegen version
/usr/local/bin/swagger-codegen generate -l python -o /Users/matecsaj/PycharmProjects/ebay_rest/scripts/api_cache/sell_inventory -DpackageName=sell_inventory -i /Users/matecsaj/PycharmProjects/ebay_rest/scripts/api_cache/sell_inventory_v1_oas3.json
Steps to reproduce
I'm currently using macOS Ventura Intel and openjdk@11.
I've used the program for a few years and have upgraded regularly. Today the upgrade proceeded normally, but afterwards, the program malfunctioned.
brew update && brew upgrade && brew cleanup
All commands that I tried displayed the following. See the prior section for examples.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
The more severe consequence is that some commands, e.g. generate, abort prematurely, so essential work can be accomplished.
Related issues/PRs
Searching on 'slf4j' yields many results. The gist is the problem has arisen and then been fixed several times.
Suggest a fix/enhancement
I don't know Java, so I can't help myself or others.
This might be a good starting point.
https://www.slf4j.org/codes.html#StaticLoggerBinder
Since this problem recurs, add a unit test.