Skip to content

OpenAPI router works with quarkus dev, fails in native image #44664

Answered by zakkak
Stwissel asked this question in Q&A
Discussion options

You must be logged in to vote

@Stwissel this seems related to the glob pattern being passed to quarkus.native.resources.includes

In the reproducer **/*.json gets translated to the regex .*/[^/]*\\.json, which doesn't match test.json because it needs at least one /. If you remove the / and pass ***.json it will work.

Now my understanding is that **/*.json is expected to match all json files (see here), including test.json, which indicates that

might need some patching.

Replies: 3 comments 15 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Stwissel
Comment options

Comment options

You must be logged in to vote
14 replies
@gsmet
Comment options

@Stwissel
Comment options

@Stwissel
Comment options

@zakkak
Comment options

zakkak Nov 25, 2024
Collaborator

Answer selected by Stwissel
@Stwissel
Comment options

@zakkak
Comment options

zakkak Nov 25, 2024
Collaborator

@Stwissel
Comment options

@zakkak
Comment options

zakkak Nov 25, 2024
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment