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

compile fails if directory "openapi" is not present, even if another directory is used #871

Open
SteveGueldner opened this issue Nov 25, 2024 · 2 comments · May be fixed by #928
Open

compile fails if directory "openapi" is not present, even if another directory is used #871

SteveGueldner opened this issue Nov 25, 2024 · 2 comments · May be fixed by #928
Assignees
Labels
area:server This item is related to the server extension bug Something isn't working

Comments

@SteveGueldner
Copy link

Hi!

when I use a different path than "../resources/openapi" for my API definition and omit the directory completely, then compilation fails. When I just add an empty directory "openapi" but keep using the different path it works without any problems.

How to reproduce:

  1. Delete the directory "openapi" or don't even create it
  2. Define a different path in application.properties: quarkus.openapi.generator.spec=../test/openapi.yaml
  3. (mvn clean)
  4. mvn compile

Result:

Compilation fails due to missing referenced imports. No error message suggesting the missing file or directory.

Possible workaround:

Just add an empty directory "openapi" in resources. If Git can't handle the empty directory just put in a dummy file.

Versions used:

quarkus-openapi-generator: 2.6.0
Quarkus: 3.15.2
Java: 21
maven-compiler-plugin: 3.9.6

@ricardozanini ricardozanini added bug Something isn't working area:client This item is related to the client extension labels Nov 25, 2024
@SteveGueldner
Copy link
Author

Just realized I forgot to mention that this happened with quarkus-openapi-generator-server...

@hbelmiro hbelmiro added area:server This item is related to the server extension and removed area:client This item is related to the client extension labels Nov 29, 2024
@hbelmiro
Copy link
Contributor

cc @carlesarnal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:server This item is related to the server extension bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants