Open MrudulaAmirneni opened 1 week ago
i tested with
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml --additional-properties useRxJava2=true,serializableModel=true,dateLibrary=java11,hideGenerationTimestamp=true,booleanGetterPrefix=is,sortParamsByRequiredFlag=false -o /tmp/output23/
and the output compiles without issues.
Bug Report Checklist
Description
I am getting this error when I am trying to build the library using 7.7.0 version
error: package org.junit.jupiter.api does not exist import org.junit.jupiter.api.Test;
Inside the test class I see import org.junit.jupiter.api.Test; but the API is referring to junit4. I see that this issue has been fixed in 7.6.0 using this PR https://github.com/OpenAPITools/openapi-generator/pull/18741, but I am getting the same error even with 7.7.0.
openapi-generator version
7.7.0 ##### OpenAPI declaration file content or urlGeneration Details
openapi-generator-cli generate \ -i ./api/swagger/swagger.yaml \ -g java \ --additional-properties useRxJava2=true,serializableModel=true,dateLibrary=java11,hideGenerationTimestamp=true,booleanGetterPrefix=is,sortParamsByRequiredFlag=false \
Steps to reproduce
Related issues/PRs
https://github.com/OpenAPITools/openapi-generator/issues/18465
Suggest a fix