swagger-api / swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
http://swagger.io
Apache License 2.0
16.72k stars 6.02k forks source link

Master branch seem broken... CodegenConfiguratorTest.testFromFile:268 expected [1] but found [0] #12375

Closed allComputableThings closed 1 month ago

allComputableThings commented 2 months ago

Came to make the dart extensions work with code that requires null safety (standard for some years now).

Found that master is broken.

 8298  git clone https://github.com/swagger-api/swagger-codegen
 8299  cd swagger-codegen
 8300  ./run-in-docker.sh mvn package
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running TestSuite
[main] INFO io.swagger.parser.Swagger20Parser - reading from src/test/resources/1_2/petstore-1.2/api-docs
[main] INFO io.swagger.parser.Swagger20Parser - reading from src/test/resources/1_2/petstore-1.2/api-docs
[main] INFO io.swagger.parser.Swagger20Parser - reading from src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
[main] INFO io.swagger.parser.Swagger20Parser - reading from src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
[main] INFO io.swagger.codegen.languages.JavascriptClientCodegen - Using JS ES5 templates
[main] INFO io.swagger.codegen.languages.JavascriptClientCodegen - Using JS ES5 templates
[main] INFO io.swagger.parser.Swagger20Parser - reading from src/test/resources/2_0/recursive_model.yaml
[main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found.
[main] INFO io.swagger.codegen.languages.JavascriptClientCodegen - Using JS ES5 templates
[main] ERROR io.swagger.codegen.DefaultCodegen - String to be sanitized is null. Default to Object

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   CodegenConfiguratorTest.testFromFile:268 expected [1] but found [0]
micryc commented 1 month ago

Hi @allComputableThings It seems like this problem is not reproducible, does this issue still appear for you ? For now i am closing the ticket, feel free to reopen if needed.