Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JAVA] dependency missing #12448

Closed
TPunkiee opened this issue Aug 14, 2024 · 1 comment
Closed

[JAVA] dependency missing #12448

TPunkiee opened this issue Aug 14, 2024 · 1 comment

Comments

@TPunkiee
Copy link

Description

Out of the box, the produced client code has api unit tests. These don't run because there is a missing dependecy:

    <dependency>
     <groupId>org.glassfish.web</groupId>
     <artifactId>javax.el</artifactId>
     <version>2.2.4</version>
  </dependency>

Swagger-codegen version
java -jar swagger-codegen-cli-3.0.61.jar generate -v -i  api-docs-annotated-2.8.8.json -l java -c config.json -o swagger_std_288
$ cat config.json 
{
  "io.swagger.parser.util.RemoteUrl.trustAll": "true",
  "hideGenerationTimestamp": "true",
  "useBeanValidation": "true",
  "dateLibrary": "java11",
  "performBeanValidation": "true"
}
Steps to reproduce
  1. Generate code as above
  2. Open this dir as a new IDEA project (2024.1)
  3. load maven project
  4. execute any api unit test
Suggest a fix/enhancement

Generate the dependecy

    <dependency>
     <groupId>org.glassfish.web</groupId>
     <artifactId>javax.el</artifactId>
     <version>2.2.4</version>
  </dependency>
micryc added a commit to swagger-api/swagger-codegen-generators that referenced this issue Nov 5, 2024
…ation to get rid of hibernate error with missing dependency
@micryc
Copy link
Contributor

micryc commented Nov 5, 2024

HI @TPunkiee thank you for reporting ! FIx should be addressed in: swagger-api/swagger-codegen-generators#1320. I am closing the issue.

@micryc micryc closed this as completed Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants