Skip to content
New issue

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

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

Already on GitHub? # to your account

Swagger reader (i guess) merges valid jax-rs paths together #2751

Closed
soberich opened this issue Apr 8, 2018 · 4 comments
Closed

Swagger reader (i guess) merges valid jax-rs paths together #2751

soberich opened this issue Apr 8, 2018 · 4 comments

Comments

@soberich
Copy link

soberich commented Apr 8, 2018

Hi,

I have a Application class and jax-rs endpoints

@ApplicationPath("rest")

endpoints

@Path("user")

which is a valid way to get resulting path as "rest/user" according to jax-rs docs
unfortunately
the resulting .yaml file states ''/restuser/...' everywhere
NO configuration done to swagger at all, just 2 dependencies added (initializer and jaxrs2)
and after scanning the result is that.

@webron
Copy link
Contributor

webron commented Apr 8, 2018

This is using which version of swagger-core?

@soberich
Copy link
Author

soberich commented Apr 8, 2018

Latest, and greatest!. 2.0.0

@webron
Copy link
Contributor

webron commented Apr 8, 2018

Thanks. Obviously, it sounds like a bug. If you can provide us with a failing test (via a PR) or a sample class, it would greatly help us solve the issue.

frantuma added a commit that referenced this issue Apr 10, 2018
frantuma added a commit that referenced this issue Apr 10, 2018
refs #2751 - fix path building for resources without leading slashes
@frantuma
Copy link
Member

fixed in #2758 (including and replacing #2746)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants